summaryrefslogtreecommitdiff
path: root/gtk/gtkstack.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-15 18:37:56 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-15 18:39:09 -0400
commitcc9fe4b354a6ae14f7f85d62d7807955d7a54799 (patch)
tree89f726cdfd85f4bc1ea722b16e58972fe963009b /gtk/gtkstack.h
parente4d29ba9fdfb78625dd792d9956783352b6b6208 (diff)
downloadgtk+-stack-add-child.tar.gz
stack: Add gtk_stack_add_childstack-add-child
The name of children is not essential, so add a way to add children without providing one. Fixes: #3165
Diffstat (limited to 'gtk/gtkstack.h')
-rw-r--r--gtk/gtkstack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkstack.h b/gtk/gtkstack.h
index 6253890aa5..cf506b49fb 100644
--- a/gtk/gtkstack.h
+++ b/gtk/gtkstack.h
@@ -113,6 +113,9 @@ GType gtk_stack_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL
GtkWidget * gtk_stack_new (void);
GDK_AVAILABLE_IN_ALL
+GtkStackPage * gtk_stack_add_child (GtkStack *stack,
+ GtkWidget *child);
+GDK_AVAILABLE_IN_ALL
GtkStackPage * gtk_stack_add_named (GtkStack *stack,
GtkWidget *child,
const char *name);