]> Pileus Git - ~andy/gtk/commitdiff
gtk-demo: fix the tool palette demo
authorMatthias Clasen <mclasen@redhat.com>
Fri, 27 Apr 2012 12:30:05 +0000 (08:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 27 Apr 2012 12:30:05 +0000 (08:30 -0400)
The palette was confined to its minimal size, when in horizontal mode.

demos/gtk-demo/toolpalette.c

index 1a45fc14d46ff8a9684cd4778e48c8efe2c57d39..95ece8da9835df39bab4b1d941d9f13b0b5a67a1 100644 (file)
@@ -522,6 +522,7 @@ do_toolpalette (GtkWidget *do_widget)
                                       GTK_POLICY_NEVER,
                                       GTK_POLICY_AUTOMATIC);
       gtk_container_set_border_width (GTK_CONTAINER (palette_scroller), 6);
+      gtk_widget_set_hexpand (palette_scroller, TRUE);
 
       gtk_container_add (GTK_CONTAINER (palette_scroller), palette);
       gtk_container_add (GTK_CONTAINER (hbox), palette_scroller);