[gnome-disk-utility] fix the initial window size



commit 70422636dd0f8f2039e2c3198f5e8b582ec00645
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Mar 26 15:41:11 2009 -0400

    fix the initial window size
    
    Here is a patch that makes the palimpsest window come up large enough to
    accomodate its content. I don't think the horizontal scrollbar on the tree adds
    anything, anyway.
    
    Signed-off-by: David Zeuthen <davidz redhat com>
---
 src/palimpsest/gdu-shell.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/palimpsest/gdu-shell.c b/src/palimpsest/gdu-shell.c
index 2025db2..5fc99a5 100644
--- a/src/palimpsest/gdu-shell.c
+++ b/src/palimpsest/gdu-shell.c
@@ -2031,7 +2031,8 @@ create_window (GduShell *shell)
         /* tree view */
         treeview_scrolled_window = gtk_scrolled_window_new (NULL, NULL);
         gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (treeview_scrolled_window),
-                                        GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+                                        GTK_POLICY_NEVER,
+                                        GTK_POLICY_AUTOMATIC);
         gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (treeview_scrolled_window),
                                              GTK_SHADOW_IN);
         shell->priv->treeview = gdu_device_tree_new (shell->priv->pool);
@@ -2099,7 +2100,7 @@ create_window (GduShell *shell)
         hpane = gtk_hpaned_new ();
         gtk_paned_add1 (GTK_PANED (hpane), treeview_scrolled_window);
         gtk_paned_add2 (GTK_PANED (hpane), vbox2);
-        gtk_paned_set_position (GTK_PANED (hpane), 260);
+        //gtk_paned_set_position (GTK_PANED (hpane), 260);
 
         gtk_box_pack_start (GTK_BOX (vbox), hpane, TRUE, TRUE, 0);
 



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