[baobab/wip/vala: 49/53] window, charts: Display allocated size
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/vala: 49/53] window, charts: Display allocated size
- Date: Thu, 5 Apr 2012 22:05:40 +0000 (UTC)
commit 20e6244fc8defe5a0ae9f5e41a0b87ce83b97a3e
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 | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/baobab-main-window.ui b/src/baobab-main-window.ui
index 0e5895e..8999ab4 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 a3d18d2..97a217e 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -2,6 +2,7 @@
*
* Copyright (C) 2012 Ryan Lortie <desrt desrt ca>
* Copyright (C) 2012 Paolo Borelli <pborelli gnome org>
+ * Copyright (C) 2012 Stefano Facchini <stefano facchini gmail com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -444,13 +445,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]