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:
Kristian Rietveld 2007-06-06 12:28:50 +00:00 committed by Kristian Rietveld
parent b67d9a7dd0
commit 97af2e0063
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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);
}