[baobab] Move the progress bar on the left and kill 'usage' column



commit a6400b731e0b57aa0d1d058115fa307f1a114d81
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Sat Jul 20 12:03:54 2013 +0200

    Move the progress bar on the left and kill 'usage' column
    
    In this way the progress bar gets indented, making it more
    immediatly obvious the directory depth level it refers to.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=367194

 src/baobab-cellrenderers.vala |   10 ----------
 src/baobab-main-window.ui     |   22 ++--------------------
 2 files changed, 2 insertions(+), 30 deletions(-)
---
diff --git a/src/baobab-cellrenderers.vala b/src/baobab-cellrenderers.vala
index d119c66..e370e75 100644
--- a/src/baobab-cellrenderers.vala
+++ b/src/baobab-cellrenderers.vala
@@ -20,16 +20,6 @@
 
 namespace Baobab {
 
-    public class CellRendererPercent : Gtk.CellRendererText {
-        public Scanner.State state { set; get; }
-
-        public double percent {
-            set {
-                text = (state != Scanner.State.ERROR ? "%.1f %%".printf (value) : "");
-            }
-        }
-    }
-
     public class CellRendererName : Gtk.CellRendererText {
         public Scanner.State state { set; get; }
 
diff --git a/src/baobab-main-window.ui b/src/baobab-main-window.ui
index 76ba263..f0ad06b 100644
--- a/src/baobab-main-window.ui
+++ b/src/baobab-main-window.ui
@@ -258,22 +258,6 @@
                             <property name="reorderable">True</property>
                             <property name="sort_column_id">0</property>
                             <child>
-                              <object class="BaobabCellRendererName" id="folder_column_text_renderer"/>
-                              <attributes>
-                                <attribute name="name">0</attribute>
-                                <attribute name="state">6</attribute>
-                              </attributes>
-                            </child>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkTreeViewColumn" id="usage_column">
-                            <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>
-                            <child>
                               <object class="BaobabCellRendererProgress" id="usage_column_bar_renderer">
                                 <property name="xpad">4</property>
                                 <property name="ypad">4</property>
@@ -284,11 +268,9 @@
                               </attributes>
                             </child>
                             <child>
-                              <object class="BaobabCellRendererPercent" id="usage_column_percent_renderer">
-                                <property name="xalign">1.0</property>
-                              </object>
+                              <object class="BaobabCellRendererName" id="folder_column_text_renderer"/>
                               <attributes>
-                                <attribute name="percent">2</attribute>
+                                <attribute name="name">0</attribute>
                                 <attribute name="state">6</attribute>
                               </attributes>
                             </child>


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