diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-02-06 18:03:28 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-06 18:04:36 -0500 |
commit | 769dae2c71e0bbead834178f3584abbebc29a5b7 (patch) | |
tree | 283630914b323ce34d36573c3d8e5b6152782536 /gtk/gtkinfobar.c | |
parent | 048effdc5a3beac45d07dd598d72af5fd5d19fa9 (diff) | |
download | gtk+-769dae2c71e0bbead834178f3584abbebc29a5b7.tar.gz |
infobar: Implement forall
As a container, that is what you have to do.
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r-- | gtk/gtkinfobar.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c index a7b902cf17..5cfb54430e 100644 --- a/gtk/gtkinfobar.c +++ b/gtk/gtkinfobar.c @@ -51,6 +51,8 @@ #include "gtkbinlayout.h" #include "gtkgestureclick.h" +#include "a11y/gtkcontaineraccessibleprivate.h" + /** * SECTION:gtkinfobar * @short_description: Report important messages to the user @@ -352,6 +354,18 @@ gtk_info_bar_remove (GtkContainer *container, } static void +gtk_info_bar_forall (GtkContainer *container, + GtkCallback callback, + gpointer user_data) +{ + GtkInfoBar *self = GTK_INFO_BAR (container); + GtkInfoBarPrivate *priv = gtk_info_bar_get_instance_private (self); + + if (priv->revealer) + (*callback) (priv->revealer, user_data); +} + +static void gtk_info_bar_dispose (GObject *object) { GtkInfoBar *self = GTK_INFO_BAR (object); @@ -380,6 +394,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass) container_class->add = gtk_info_bar_add; container_class->remove = gtk_info_bar_remove; + container_class->forall = gtk_info_bar_forall; klass->close = gtk_info_bar_close; |