[baobab/wip/vala: 58/65] window, charts: Display allocated size



commit 750b27c1414d06742b0fd207bff6b40ee153cb5a
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Tue Apr 3 12:54:11 2012 +0200

    window, charts: Display allocated size

 src/baobab-main-window.ui |    3 ++-
 src/baobab-window.vala    |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/baobab-main-window.ui b/src/baobab-main-window.ui
index 84be86e..1cc73cb 100644
--- a/src/baobab-main-window.ui
+++ b/src/baobab-main-window.ui
@@ -271,10 +271,11 @@
                             <property name="sizing">autosize</property>
                             <property name="title" translatable="yes">Size</property>
                             <property name="reorderable">True</property>
-                            <property name="sort_column_id">3</property>
+                            <property name="sort_column_id">4</property>
                             <child>
                               <object class="BaobabCellRendererSize" id="size-column-size-renderer">
                                 <property name="xalign">1.0</property>
+                                <property name="show-allocated-size">True</property>
                               </object>
                               <attributes>
                                 <attribute name="size">3</attribute>
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 37bd57a..a01c97d 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -507,13 +507,13 @@ namespace Baobab {
 			model.bind_property ("max-depth", treemap_chart, "max-depth", BindingFlags.SYNC_CREATE);
 			treemap_chart.set_model_with_columns (model,
 			                                      Scanner.Columns.DISPLAY_NAME,
-			                                      Scanner.Columns.SIZE,
+			                                      Scanner.Columns.ALLOC_SIZE,
 			                                      Scanner.Columns.PARSE_NAME,
 			                                      Scanner.Columns.PERCENT,
 			                                      Scanner.Columns.ELEMENTS, null);
 			rings_chart.set_model_with_columns (model,
 			                                    Scanner.Columns.DISPLAY_NAME,
-			                                    Scanner.Columns.SIZE,
+			                                    Scanner.Columns.ALLOC_SIZE,
 			                                    Scanner.Columns.PARSE_NAME,
 			                                    Scanner.Columns.PERCENT,
 			                                    Scanner.Columns.ELEMENTS, null);



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