summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Facchini <stefano.facchini@gmail.com>2013-07-20 12:03:54 +0200
committerStefano Facchini <stefano.facchini@gmail.com>2013-07-21 11:26:12 +0200
commita6400b731e0b57aa0d1d058115fa307f1a114d81 (patch)
tree2703aa3a041a63f10ef4183a4f70264e9db53a52
parentd47daff32ea5fa944fb5483b0c2941499f54177b (diff)
downloadbaobab-a6400b731e0b57aa0d1d058115fa307f1a114d81.tar.gz
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
-rw-r--r--src/baobab-cellrenderers.vala10
-rw-r--r--src/baobab-main-window.ui22
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>