[baobab/wip/new-design: 37/59] Sync the chart root to the treeview selection.
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/new-design: 37/59] Sync the chart root to the treeview selection.
- Date: Sun, 1 Apr 2012 17:12:47 +0000 (UTC)
commit bb69b39640e706f0be6c2d0feaf06bd4cb6f69c3
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Jan 29 18:25:42 2012 +0100
Sync the chart root to the treeview selection.
src/baobab-window.vala | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index b205033..6d4df45 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -294,6 +294,16 @@ namespace Baobab {
}
}
});
+
+ var selection = treeview.get_selection ();
+ selection.changed.connect (() => {
+ Gtk.TreeIter iter;
+ if (selection.get_selected (null, out iter)) {
+ var path = scanner.get_path (iter);
+ rings_chart.set_root (path);
+ treemap_chart.set_root (path);
+ }
+ });
}
void message (string primary_msg, string secondary_msg, Gtk.MessageType type) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]