diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2015-02-12 18:09:13 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2015-02-13 18:01:56 +0100 |
commit | f3110e4103207e31d932f9bcdd5ca295e17f41de (patch) | |
tree | 75aa9aa302e9fe2f9f513598a3a2c0a8ab1d72a6 /demos/gtk-demo/sidebar.c | |
parent | ac497c6e8f45bfece4054ba7f72ffd7becb45311 (diff) | |
download | gtk+-f3110e4103207e31d932f9bcdd5ca295e17f41de.tar.gz |
Rename GtkSidebar to GtkStackSidebar
GtkSidebar is too generic and doesn't fully convey what the widget does.
https://bugzilla.gnome.org/show_bug.cgi?id=744094
Diffstat (limited to 'demos/gtk-demo/sidebar.c')
-rw-r--r-- | demos/gtk-demo/sidebar.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/demos/gtk-demo/sidebar.c b/demos/gtk-demo/sidebar.c index f135794126..1422d10951 100644 --- a/demos/gtk-demo/sidebar.c +++ b/demos/gtk-demo/sidebar.c @@ -1,9 +1,9 @@ -/* Sidebar +/* Stack Sidebar * - * GtkSidebar provides an automatic sidebar widget to control navigation - * of a GtkStack object. This widget automatically updates it content - * based on what is presently available in the GtkStack object, and - * using the "title" child property to set the display labels. + * GtkStackSidebar provides an automatic sidebar widget to control + * navigation of a GtkStack object. This widget automatically updates it + * content based on what is presently available in the GtkStack object, + * and using the "title" child property to set the display labels. */ #include <glib/gi18n.h> @@ -21,7 +21,7 @@ do_sidebar (GtkWidget *do_widget) GtkWidget *header; const gchar* pages[] = { "Welcome to GTK+", - "GtkSidebar Widget", + "GtkStackSidebar Widget", "Automatic navigation", "Consistent appearance", "Scrolling", @@ -43,18 +43,18 @@ do_sidebar (GtkWidget *do_widget) header = gtk_header_bar_new (); gtk_header_bar_set_show_close_button (GTK_HEADER_BAR(header), TRUE); gtk_window_set_titlebar (GTK_WINDOW(window), header); - gtk_window_set_title (GTK_WINDOW(window), "Sidebar demo"); + gtk_window_set_title (GTK_WINDOW(window), "Stack Sidebar demo"); g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); - sidebar = gtk_sidebar_new (); + sidebar = gtk_stack_sidebar_new (); gtk_box_pack_start (GTK_BOX (box), sidebar, FALSE, FALSE, 0); stack = gtk_stack_new (); gtk_stack_set_transition_type (GTK_STACK (stack), GTK_STACK_TRANSITION_TYPE_SLIDE_UP_DOWN); - gtk_sidebar_set_stack (GTK_SIDEBAR (sidebar), GTK_STACK (stack)); + gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), GTK_STACK (stack)); /* Separator between sidebar and stack */ widget = gtk_separator_new (GTK_ORIENTATION_VERTICAL); |