[goocanvas] Table demo: Correct the box packing of the scrolled windows.



commit 9ccaf6baa2bdeeb91b5573253d73291ee09affc5
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Aug 11 21:18:06 2011 +0200

    Table demo: Correct the box packing of the scrolled windows.
    
    * demo/mv-table-demo.c (main):
    * demo/table-demo.c (main): Pack the scrolled windows with expand=true.
    I wonder when this broke and why.

 ChangeLog            |    8 ++++++++
 demo/mv-table-demo.c |    4 ++--
 demo/table-demo.c    |    4 ++--
 3 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ba0c704..021d686 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-08-11  Murray Cumming  <murrayc murrayc com>
+
+	Table demo: Correct the box packing of the scrolled windows.
+
+	* demo/mv-table-demo.c (main):
+	* demo/table-demo.c (main): Pack the scrolled windows with expand=true.
+	I wonder when this broke and why.
+
 2011-02-27  Damon Chaplin  <damon gnome org>
 
 	* Released GooCanvas 2.0.0
diff --git a/demo/mv-table-demo.c b/demo/mv-table-demo.c
index c199877..4df61fa 100644
--- a/demo/mv-table-demo.c
+++ b/demo/mv-table-demo.c
@@ -243,7 +243,7 @@ main (int argc, char *argv[])
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
 				       GTK_SHADOW_IN);
   gtk_widget_show (scrolled_win);
-  gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, FALSE, FALSE, 0);
+  gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
 
   canvas = goo_canvas_new ();
   gtk_widget_set_size_request (canvas, 600, 250);
@@ -263,7 +263,7 @@ main (int argc, char *argv[])
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
 				       GTK_SHADOW_IN);
   gtk_widget_show (scrolled_win);
-  gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, FALSE, FALSE, 0);
+  gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
 
   canvas = goo_canvas_new ();
   g_object_set (canvas,
diff --git a/demo/table-demo.c b/demo/table-demo.c
index 431cba6..803fc43 100644
--- a/demo/table-demo.c
+++ b/demo/table-demo.c
@@ -238,7 +238,7 @@ main (int argc, char *argv[])
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
 				       GTK_SHADOW_IN);
   gtk_widget_show (scrolled_win);
-  gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, FALSE, FALSE, 0);
+  gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
 
   canvas = goo_canvas_new ();
   gtk_widget_set_size_request (canvas, 600, 250);
@@ -258,7 +258,7 @@ main (int argc, char *argv[])
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
 				       GTK_SHADOW_IN);
   gtk_widget_show (scrolled_win);
-  gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, FALSE, FALSE, 0);
+  gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
 
   canvas = goo_canvas_new ();
   g_object_set (canvas,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]