[gtk+] GtkPopoverMenu: Implement forall



commit 1e39790c49e0249ffb8b432e813e98fe76a8aee6
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Nov 15 17:44:39 2014 -0500

    GtkPopoverMenu: Implement forall
    
    This is required to make glade work.

 gtk/gtkpopovermenu.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkpopovermenu.c b/gtk/gtkpopovermenu.c
index 0bd1c0a..fefcdc5 100644
--- a/gtk/gtkpopovermenu.c
+++ b/gtk/gtkpopovermenu.c
@@ -175,6 +175,22 @@ gtk_popover_menu_remove (GtkContainer *container,
 }
 
 static void
+gtk_popover_menu_forall (GtkContainer *container,
+                         gboolean      include_internals,
+                         GtkCallback   callback,
+                         gpointer      callback_data)
+{
+  GtkWidget *stack;
+
+  stack = gtk_bin_get_child (GTK_BIN (container));
+
+  if (include_internals)
+    (* callback) (stack, callback_data);
+
+  gtk_container_forall (GTK_CONTAINER (stack), callback, callback_data);
+}
+
+static void
 gtk_popover_menu_get_child_property (GtkContainer *container,
                                      GtkWidget    *child,
                                      guint         property_id,
@@ -246,6 +262,7 @@ gtk_popover_menu_class_init (GtkPopoverMenuClass *klass)
 
   container_class->add = gtk_popover_menu_add;
   container_class->remove = gtk_popover_menu_remove;
+  container_class->forall = gtk_popover_menu_forall;
   container_class->set_child_property = gtk_popover_menu_set_child_property;
   container_class->get_child_property = gtk_popover_menu_get_child_property;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]