[gtk+] gtk-demo: Make the sidebar demo scroll
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk-demo: Make the sidebar demo scroll
- Date: Thu, 2 Oct 2014 22:06:16 +0000 (UTC)
commit eb88ce429c4123cd339eae91873e9d58132aa332
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Oct 2 17:57:59 2014 -0400
gtk-demo: Make the sidebar demo scroll
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 2d373f4..f135794 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]