From 67a8a3a265757f8929706e7feeb2386af63bfbc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Mon, 4 Aug 2008 21:37:02 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20534979=20=E2=80=93=20GtkImageMenuItem=20i?= =?UTF-8?q?s=20a=20bin=20but=20has=20two=20children.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-08-04 Björn Lindqvist Bug 534979 – GtkImageMenuItem is a bin but has two children. * gtk/gtkimagemenuitem.c (gtk_image_menu_item_forall): Do not include the image widget when iterating over non-internal children. Patch by rainwoodman. svn path=/trunk/; revision=20985 --- ChangeLog | 8 ++++++++ gtk/gtkimagemenuitem.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d58a1d4f19..4ee00add1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-08-04 Björn Lindqvist + + Bug 534979 – GtkImageMenuItem is a bin but has two children. + + * gtk/gtkimagemenuitem.c (gtk_image_menu_item_forall): Do not + include the image widget when iterating over non-internal + children. Patch by rainwoodman. + 2008-08-04 Matthias Clasen * NEWS: Updates diff --git a/gtk/gtkimagemenuitem.c b/gtk/gtkimagemenuitem.c index 369375a0a4..6c8e4ed547 100644 --- a/gtk/gtkimagemenuitem.c +++ b/gtk/gtkimagemenuitem.c @@ -352,7 +352,7 @@ gtk_image_menu_item_forall (GtkContainer *container, callback, callback_data); - if (image_menu_item->image) + if (include_internals && image_menu_item->image) (* callback) (image_menu_item->image, callback_data); }