From 75d9d02b7266b86305051c887651c3dfbb669018 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Tue, 10 Jul 2007 17:47:10 +0000 Subject: [PATCH] use gtk_container_forall, instead of gtk_container_foreach(). Makes 2007-07-10 Kristian Rietveld * 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 --- ChangeLog | 7 +++++++ gtk/gtktooltip.c | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 876335ff34..33a8bc24a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-07-10 Kristian Rietveld + + * 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 * gtk/gtktooltip.c (child_location_foreach): ignore invisible diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 045f9b182d..5b137de794 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -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;