[gedit] Expand the view instead of the paned.



commit 412b54b0568aa73c5beaa4080f011b3785507658
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Jul 4 16:53:31 2011 +0200

    Expand the view instead of the paned.

 gedit/gedit-multi-notebook.c |    1 -
 gedit/gedit-view-frame.c     |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-multi-notebook.c b/gedit/gedit-multi-notebook.c
index 86a1663..80f482d 100644
--- a/gedit/gedit-multi-notebook.c
+++ b/gedit/gedit-multi-notebook.c
@@ -461,7 +461,6 @@ add_notebook (GeditMultiNotebook *mnb,
 		gboolean collapse_new_notebook = FALSE;
 
 		paned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
-		gtk_widget_set_vexpand (paned, TRUE);
 		gtk_widget_show (paned);
 
 		/* First we remove the active container from its parent to make
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index 3cc4ade..09b7191 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -1439,6 +1439,7 @@ gedit_view_frame_init (GeditViewFrame *frame)
 						     frame);
 
 	frame->priv->view = gedit_view_new (doc);
+	gtk_widget_set_vexpand (frame->priv->view, TRUE);
 	gtk_widget_show (frame->priv->view);
 
 	g_object_unref (doc);



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