apply patch from Bogdan Nicula which fixes a crash on GdkWindows which
2007-05-24 Michael Natterer <mitch@imendio.com> * gtk/gtktooltip.c (find_widget_under_pointer): apply patch from Bogdan Nicula which fixes a crash on GdkWindows which have no GtkWidget as user_data (bug #440890). svn path=/trunk/; revision=17906
This commit is contained in:
committed by
Michael Natterer
parent
dcb435c4d0
commit
5a1a2cf44c
@ -1,3 +1,9 @@
|
|||||||
|
2007-05-24 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
* gtk/gtktooltip.c (find_widget_under_pointer): apply patch from
|
||||||
|
Bogdan Nicula which fixes a crash on GdkWindows which have no
|
||||||
|
GtkWidget as user_data (bug #440890).
|
||||||
|
|
||||||
2007-05-24 Matthias Clasen <mclasen@redhat.com>
|
2007-05-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* configure.in: Bump version
|
* configure.in: Bump version
|
||||||
|
|||||||
@ -461,11 +461,14 @@ find_widget_under_pointer (GdkWindow *window,
|
|||||||
GtkWidget *event_widget;
|
GtkWidget *event_widget;
|
||||||
struct ChildLocation child_loc = { NULL, NULL, 0, 0 };
|
struct ChildLocation child_loc = { NULL, NULL, 0, 0 };
|
||||||
|
|
||||||
|
gdk_window_get_user_data (window, (void **)&event_widget);
|
||||||
|
|
||||||
|
if (!event_widget)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
child_loc.x = *x;
|
child_loc.x = *x;
|
||||||
child_loc.y = *y;
|
child_loc.y = *y;
|
||||||
|
|
||||||
gdk_window_get_user_data (window, (void **)&event_widget);
|
|
||||||
|
|
||||||
while (window && window != event_widget->window)
|
while (window && window != event_widget->window)
|
||||||
{
|
{
|
||||||
gint px, py;
|
gint px, py;
|
||||||
|
|||||||
Reference in New Issue
Block a user