Move all view related code into the view

This commit is contained in:
Techlive Zheng 2013-06-01 02:09:13 +08:00
parent ff70730e0b
commit 58fe8ce084
2 changed files with 10 additions and 10 deletions

View file

@ -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

View file

@ -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) => {