use gtk_container_forall, instead of gtk_container_foreach(). Makes

2007-07-10  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktooltip.c (find_widget_under_pointer),
	(child_location_foreach): use gtk_container_forall, instead of
	gtk_container_foreach().  Makes tooltips on notebook tabs work. (Fixes
	bug reported by Christian Persch).


svn path=/trunk/; revision=18436
This commit is contained in:
Kristian Rietveld
2007-07-10 17:47:10 +00:00
committed by Kristian Rietveld
parent 94cfbbfa15
commit 75d9d02b72
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2007-07-10 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (find_widget_under_pointer),
(child_location_foreach): use gtk_container_forall, instead of
gtk_container_foreach(). Makes tooltips on notebook tabs work. (Fixes
bug reported by Christian Persch).
2007-07-10 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (child_location_foreach): ignore invisible

View File

@ -434,8 +434,8 @@ child_location_foreach (GtkWidget *child,
tmp.y = y;
tmp.container = child;
gtk_container_foreach (GTK_CONTAINER (child),
child_location_foreach, &tmp);
gtk_container_forall (GTK_CONTAINER (child),
child_location_foreach, &tmp);
if (tmp.child)
child_loc->child = tmp.child;
@ -526,8 +526,8 @@ find_widget_under_pointer (GdkWindow *window,
child_loc.container = event_widget;
child_loc.child = NULL;
gtk_container_foreach (GTK_CONTAINER (event_widget),
child_location_foreach, &child_loc);
gtk_container_forall (GTK_CONTAINER (event_widget),
child_location_foreach, &child_loc);
if (child_loc.child)
event_widget = child_loc.child;