forked from AuroraMiddleware/gtk
bail out if last_window is not a GdkWindow anymore. (Fixes #434021,
2007-06-06 Kristian Rietveld <kris@imendio.com> * gtk/gtktooltip.c (gtk_tooltip_show_tooltip): bail out if last_window is not a GdkWindow anymore. (Fixes #434021, several reporters). svn path=/trunk/; revision=18051
This commit is contained in:
parent
b67d9a7dd0
commit
97af2e0063
@ -1,3 +1,9 @@
|
||||
2007-06-06 Kristian Rietveld <kris@imendio.com>
|
||||
|
||||
* gtk/gtktooltip.c (gtk_tooltip_show_tooltip): bail out if
|
||||
last_window is not a GdkWindow anymore. (Fixes #434021, several
|
||||
reporters).
|
||||
|
||||
2007-06-06 Brian Cameron <brian.cameron@sun.com>
|
||||
|
||||
* gdk/Makefile.am: Add gdkmedialib.h to EXTRA_DIST so this header
|
||||
|
@ -634,13 +634,13 @@ gtk_tooltip_show_tooltip (GdkDisplay *display)
|
||||
{
|
||||
window = tooltip->last_window;
|
||||
|
||||
if (!GDK_IS_WINDOW (window))
|
||||
return;
|
||||
|
||||
gdk_window_get_origin (window, &x, &y);
|
||||
x = tooltip->last_x - x;
|
||||
y = tooltip->last_y - y;
|
||||
|
||||
if (!window)
|
||||
return;
|
||||
|
||||
pointer_widget = tooltip_widget = find_widget_under_pointer (window,
|
||||
&x, &y);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user