Commit 97af2e00 authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld

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
parent b67d9a7d
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment