mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
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>
|
2007-06-06 Brian Cameron <brian.cameron@sun.com>
|
||||||
|
|
||||||
* gdk/Makefile.am: Add gdkmedialib.h to EXTRA_DIST so this header
|
* 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;
|
window = tooltip->last_window;
|
||||||
|
|
||||||
|
if (!GDK_IS_WINDOW (window))
|
||||||
|
return;
|
||||||
|
|
||||||
gdk_window_get_origin (window, &x, &y);
|
gdk_window_get_origin (window, &x, &y);
|
||||||
x = tooltip->last_x - x;
|
x = tooltip->last_x - x;
|
||||||
y = tooltip->last_y - y;
|
y = tooltip->last_y - y;
|
||||||
|
|
||||||
if (!window)
|
|
||||||
return;
|
|
||||||
|
|
||||||
pointer_widget = tooltip_widget = find_widget_under_pointer (window,
|
pointer_widget = tooltip_widget = find_widget_under_pointer (window,
|
||||||
&x, &y);
|
&x, &y);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user