[baobab/wip/vala: 37/53] Sync the chart root to the treeview selection.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/vala: 37/53] Sync the chart root to the treeview selection.
- Date: Thu, 5 Apr 2012 22:04:40 +0000 (UTC)
commit 63a011fc6c3d868de2fd3a02cd1522a41bcb1413
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 aa515bb..998b585 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -314,6 +314,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]