diff options
author | Timm Bäder <mail@baedert.org> | 2017-04-22 22:16:27 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-04-25 20:30:37 +0200 |
commit | f053a63d7480d1b15e4d556ba48461ee3426dc49 (patch) | |
tree | 0cb40b0a560d66463d372fa03c7770a270652a16 /gtk/gtkshortcutssection.c | |
parent | 066c1983ba2c6f1f891e600c561ab03eac2074a6 (diff) | |
download | gtk+-f053a63d7480d1b15e4d556ba48461ee3426dc49.tar.gz |
container: Remove include_internals parameter from forall
with include_internals=TRUE, this is the same as the (still private)
gtk_widget_forall, or just using the children/sibling accessors in a
loop.
Diffstat (limited to 'gtk/gtkshortcutssection.c')
-rw-r--r-- | gtk/gtkshortcutssection.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gtk/gtkshortcutssection.c b/gtk/gtkshortcutssection.c index 65d6a31818..ac1399b2c2 100644 --- a/gtk/gtkshortcutssection.c +++ b/gtk/gtkshortcutssection.c @@ -154,24 +154,16 @@ gtk_shortcuts_section_remove (GtkContainer *container, static void gtk_shortcuts_section_forall (GtkContainer *container, - gboolean include_internal, GtkCallback callback, gpointer callback_data) { GtkShortcutsSection *self = (GtkShortcutsSection *)container; GList *l; - if (include_internal) + for (l = self->groups; l; l = l->next) { - GTK_CONTAINER_CLASS (gtk_shortcuts_section_parent_class)->forall (container, include_internal, callback, callback_data); - } - else - { - for (l = self->groups; l; l = l->next) - { - GtkWidget *group = l->data; - callback (group, callback_data); - } + GtkWidget *group = l->data; + callback (group, callback_data); } } |