[baobab] Make main window treeview columns resizable



commit 56152912617b170980e97dd4630ca015b5fef5e3
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 17 13:03:25 2012 +0200

    Make main window treeview columns resizable
    
    They were marked as resizable in the ui file before, but setting the
    sizing to autosize (next line in the UI file) toggles that setting off
    again. So use grow-only instead, which preserves the resizability.

 src/baobab-main-window.ui |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/baobab-main-window.ui b/src/baobab-main-window.ui
index 80009fb..afa288a 100644
--- a/src/baobab-main-window.ui
+++ b/src/baobab-main-window.ui
@@ -229,7 +229,7 @@
                     <child>
                       <object class="GtkTreeViewColumn" id="folder-column">
                         <property name="resizable">True</property>
-                        <property name="sizing">autosize</property>
+                        <property name="sizing">grow-only</property>
                         <property name="title" translatable="yes">Folder</property>
                         <property name="expand">True</property>
                         <property name="reorderable">True</property>
@@ -244,7 +244,8 @@
                     </child>
                     <child>
                       <object class="GtkTreeViewColumn" id="usage-column">
-                        <property name="sizing">autosize</property>
+                        <property name="resizable">True</property>
+                        <property name="sizing">grow-only</property>
                         <property name="title" translatable="yes">Usage</property>
                         <property name="reorderable">True</property>
                         <property name="sort_column_id">2</property>
@@ -270,7 +271,7 @@
                     <child>
                       <object class="GtkTreeViewColumn" id="size-column">
                         <property name="resizable">True</property>
-                        <property name="sizing">autosize</property>
+                        <property name="sizing">grow-only</property>
                         <property name="title" translatable="yes">Size</property>
                         <property name="reorderable">True</property>
                         <property name="sort_column_id">4</property>
@@ -289,7 +290,7 @@
                     <child>
                       <object class="GtkTreeViewColumn" id="contents-column">
                         <property name="resizable">True</property>
-                        <property name="sizing">autosize</property>
+                        <property name="sizing">grow-only</property>
                         <property name="title" translatable="yes">Contents</property>
                         <property name="reorderable">True</property>
                         <property name="sort_column_id">5</property>



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