summaryrefslogtreecommitdiff
path: root/gtk/gtkactionbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-02-18 20:45:15 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-02-18 22:50:37 -0500
commit53f6b8582a213232e9b0fecbd3c59451a92577ca (patch)
tree7de1c4b10cbe6ab562cd4a30bb1c2d243669d50a /gtk/gtkactionbar.c
parentd3c28194017844945f3ba733b7e95c66ba6c2875 (diff)
downloadgtk+-53f6b8582a213232e9b0fecbd3c59451a92577ca.tar.gz
Revert "action bar: remove the forall implementation"
This reverts commit 0ff0fdfefbba86f3dc7713cf55bbf00194274fe3.
Diffstat (limited to 'gtk/gtkactionbar.c')
-rw-r--r--gtk/gtkactionbar.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c
index 7794007a72..9be1fe0777 100644
--- a/gtk/gtkactionbar.c
+++ b/gtk/gtkactionbar.c
@@ -122,6 +122,20 @@ gtk_action_bar_remove (GtkContainer *container,
gtk_container_remove (GTK_CONTAINER (priv->center_box), child);
}
+static void
+gtk_action_bar_forall (GtkContainer *container,
+ gboolean include_internals,
+ GtkCallback callback,
+ gpointer callback_data)
+{
+ GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (GTK_ACTION_BAR (container));
+
+ if (include_internals)
+ (* callback) (priv->revealer, callback_data);
+ else if (priv->center_box)
+ gtk_container_forall (GTK_CONTAINER (priv->center_box), callback, callback_data);
+}
+
static GType
gtk_action_bar_child_type (GtkContainer *container)
{
@@ -188,6 +202,7 @@ gtk_action_bar_class_init (GtkActionBarClass *klass)
container_class->add = gtk_action_bar_add;
container_class->remove = gtk_action_bar_remove;
+ container_class->forall = gtk_action_bar_forall;
container_class->child_type = gtk_action_bar_child_type;
container_class->set_child_property = gtk_action_bar_set_child_property;
container_class->get_child_property = gtk_action_bar_get_child_property;