[gnumeric] GUI: Eliminate a GtkGrid.



commit c584c1df33da9a5e324c5ec7063f2cc0a9eb7d4e
Author: Morten Welinder <terra gnome org>
Date:   Wed Jan 11 15:49:10 2012 -0500

    GUI: Eliminate a GtkGrid.

 ChangeLog     |    3 +++
 src/wbc-gtk.c |   13 +++++++------
 2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index dfa8bd7..6e6c13b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-01-11  Morten Welinder  <terra gnome org>
 
+	* src/wbc-gtk.c (wbc_gtk_init): No need for a GtkGrid when a vbox
+	will do just fine.
+
 	* src/commands.c (cmd_paste_copy_impl): Fix undo problem.
 	[#667702]
 
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index 20fb651..679f1b8 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -988,9 +988,9 @@ wbc_gtk_create_notebook_area (WBCGtk *wbcg)
 
 	gtk_widget_show_all (GTK_WIDGET (wbcg->tabs_paned));
 	gtk_widget_show (GTK_WIDGET (wbcg->notebook_area));
-	gtk_grid_attach (GTK_GRID (wbcg->table),
-			 wbcg->notebook_area,
-			 0, 1, 1, 1);
+	gtk_box_pack_start (GTK_BOX (wbcg->table),
+			    wbcg->notebook_area,
+			    TRUE, TRUE, 0);
 }
 
 
@@ -2748,8 +2748,9 @@ wbc_gtk_create_edit_area (WBCGtk *wbcg)
 			   GTK_WIDGET (wbcg->edit_line.entry));
 	gtk_toolbar_insert (tb, item, -1);
 
-	gtk_grid_attach (GTK_GRID (wbcg->table), GTK_WIDGET (tb),
-			 0, 0, 1, 1);
+	gtk_box_pack_start (GTK_BOX (wbcg->table), 
+			    GTK_WIDGET (tb),
+			    FALSE, FALSE, 0);
 
 	/* Do signal setup for the editing input line */
 	g_signal_connect (G_OBJECT (entry),
@@ -5705,7 +5706,7 @@ wbc_gtk_init (GObject *obj)
 	char		*uifile;
 	unsigned	 i;
 
-	wbcg->table       = gtk_grid_new ();
+	wbcg->table       = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	wbcg->bnotebook   = NULL;
 	wbcg->snotebook   = NULL;
 	wbcg->notebook_area = NULL;



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