mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 20:09:23 +00:00
Move all view related code into the view
This commit is contained in:
parent
ff70730e0b
commit
58fe8ce084
|
@ -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
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue