diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-11-10 22:43:37 -0500 |
---|---|---|
committer | Tristan Van Berkom <tristan@upstairslabs.com> | 2014-11-21 14:54:57 +0900 |
commit | d86b81263fbb0ca9ae2a309df1763931f813e158 (patch) | |
tree | d7228e93093850f219c0e051ce7c52236cf02091 /plugins | |
parent | 51fa810326ebbafc8c08d54f72fa6aed5f95cd9e (diff) | |
download | glade-d86b81263fbb0ca9ae2a309df1763931f813e158.tar.gz |
Set a title for new stack pages
This makes them show up in a connect stack switcher.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtk+/glade-gtk-stack.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/gtk+/glade-gtk-stack.c b/plugins/gtk+/glade-gtk-stack.c index c71ae08e..2185bbde 100644 --- a/plugins/gtk+/glade-gtk-stack.c +++ b/plugins/gtk+/glade-gtk-stack.c @@ -92,7 +92,8 @@ glade_gtk_stack_post_create (GladeWidgetAdaptor *adaptor, GladeWidget *gwidget = glade_widget_get_from_gobject (container); if (reason == GLADE_CREATE_USER) - gtk_stack_add_named (GTK_STACK (container), glade_placeholder_new (), "page0"); + gtk_stack_add_titled (GTK_STACK (container), glade_placeholder_new (), + "page0", "page0"); g_signal_connect (G_OBJECT (gwidget), "notify::project", G_CALLBACK (glade_gtk_stack_project_changed), NULL); @@ -166,7 +167,7 @@ glade_gtk_stack_child_action_activate (GladeWidgetAdaptor * adaptor, name = get_unused_name (GTK_STACK (container)); new_widget = glade_placeholder_new (); - gtk_stack_add_named (GTK_STACK (container), new_widget, name); + gtk_stack_add_titled (GTK_STACK (container), new_widget, name, name); gtk_container_child_set (GTK_CONTAINER (container), new_widget, "position", position, NULL); gtk_stack_set_visible_child (GTK_STACK (container), new_widget); @@ -304,7 +305,7 @@ glade_gtk_stack_set_n_pages (GObject * object, { name = get_unused_name (stack); child = glade_placeholder_new (); - gtk_stack_add_named (stack, child, name); + gtk_stack_add_titled (stack, child, name, name); g_free (name); } |