[gitg] Move all view related code into the view
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Move all view related code into the view
- Date: Mon, 3 Jun 2013 06:48:02 +0000 (UTC)
commit 58fe8ce084e54877b6bce95d092a2b13175378d3
Author: Techlive Zheng <techlivezheng gmail com>
Date: Sat Jun 1 02:09:13 2013 +0800
Move all view related code into the view
plugins/history/gitg-history-navigation.vala | 10 ++++++++++
plugins/history/gitg-history.vala | 10 ----------
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/plugins/history/gitg-history-navigation.vala b/plugins/history/gitg-history-navigation.vala
index e3a42b2..d9086a2 100644
--- a/plugins/history/gitg-history-navigation.vala
+++ b/plugins/history/gitg-history-navigation.vala
@@ -501,6 +501,16 @@ namespace GitgHistory
model.activate(iter, 1);
}
});
+
+ set_show_expanders(model.show_expanders);
+ if (model.show_expanders)
+ {
+ set_level_indentation(0);
+ }
+ else
+ {
+ set_level_indentation(12);
+ }
}
public new Navigation model
diff --git a/plugins/history/gitg-history.vala b/plugins/history/gitg-history.vala
index b743eb7..64f2b98 100644
--- a/plugins/history/gitg-history.vala
+++ b/plugins/history/gitg-history.vala
@@ -210,16 +210,6 @@ namespace GitgHistory
d_navigation = ret["navigation_view"] as GitgHistory.NavigationView;
d_navigation.model = d_navigation_model;
- d_navigation.set_show_expanders(d_navigation.model.show_expanders);
- if (d_navigation.model.show_expanders)
- {
- d_navigation.set_level_indentation(0);
- }
- else
- {
- d_navigation.set_level_indentation(12);
- }
-
d_commit_list = ret["commit_list_view"] as Gtk.TreeView;
d_commit_list.model = d_commit_list_model;
d_commit_list.get_selection().changed.connect((sel) => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]