mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-31 04:58:58 +00:00
Small code cleanup
This commit is contained in:
parent
4df870d91c
commit
893a6e9894
1 changed files with 13 additions and 7 deletions
|
@ -82,7 +82,8 @@ namespace GitgHistory
|
|||
update_sort_mode();
|
||||
});
|
||||
|
||||
d_selected = new Gee.HashSet<Ggit.OId>((Gee.HashDataFunc<Ggit.OId>)Ggit.OId.hash, (Gee.EqualDataFunc<Ggit.OId>)Ggit.OId.equal);
|
||||
d_selected = new Gee.HashSet<Ggit.OId>((Gee.HashDataFunc<Ggit.OId>)Ggit.OId.hash,
|
||||
(Gee.EqualDataFunc<Ggit.OId>)Ggit.OId.equal);
|
||||
|
||||
d_navigation_model = new Navigation(application.repository);
|
||||
d_navigation_model.ref_activated.connect((r) => {
|
||||
|
@ -95,9 +96,14 @@ namespace GitgHistory
|
|||
|
||||
update_sort_mode();
|
||||
|
||||
application.bind_property("repository", d_navigation_model, "repository", BindingFlags.DEFAULT);
|
||||
application.bind_property("repository", d_commit_list_model, "repository", BindingFlags.DEFAULT);
|
||||
application.bind_property("repository", this, "repository", BindingFlags.DEFAULT);
|
||||
application.bind_property("repository", d_navigation_model,
|
||||
"repository", BindingFlags.DEFAULT);
|
||||
|
||||
application.bind_property("repository", d_commit_list_model,
|
||||
"repository", BindingFlags.DEFAULT);
|
||||
|
||||
application.bind_property("repository", this,
|
||||
"repository", BindingFlags.DEFAULT);
|
||||
|
||||
application.notify["repository"].connect((a, r) => {
|
||||
notify_property("available");
|
||||
|
|
Loading…
Reference in a new issue