diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-10-02 17:57:59 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-10-02 18:06:02 -0400 |
commit | eb88ce429c4123cd339eae91873e9d58132aa332 (patch) | |
tree | 75d225cf3f7e485fd967a1b5cec11f8af0de7318 /demos | |
parent | 2a615e2e458944285578e61fca3f3053a5b2f730 (diff) | |
download | gtk+-eb88ce429c4123cd339eae91873e9d58132aa332.tar.gz |
gtk-demo: Make the sidebar demo scroll
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/sidebar.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/demos/gtk-demo/sidebar.c b/demos/gtk-demo/sidebar.c index 2d373f4a89..f135794126 100644 --- a/demos/gtk-demo/sidebar.c +++ b/demos/gtk-demo/sidebar.c @@ -19,7 +19,18 @@ do_sidebar (GtkWidget *do_widget) GtkWidget *box; GtkWidget *widget; GtkWidget *header; - const gchar* pages[] = { "Welcome to GTK+", "GtkSidebar Widget", "Automatic navigation", "Consistent appearance", NULL }; + const gchar* pages[] = { + "Welcome to GTK+", + "GtkSidebar Widget", + "Automatic navigation", + "Consistent appearance", + "Scrolling", + "Page 6", + "Page 7", + "Page 8", + "Page 9", + NULL + }; const gchar *c = NULL; guint i; @@ -55,9 +66,10 @@ do_sidebar (GtkWidget *do_widget) { if (i == 0) { - widget = gtk_image_new_from_icon_name ("help-about", GTK_ICON_SIZE_INVALID); + widget = gtk_image_new_from_icon_name ("help-about", GTK_ICON_SIZE_MENU); gtk_image_set_pixel_size (GTK_IMAGE (widget), 256); - } else + } + else { widget = gtk_label_new (c); } |