Small code cleanup

This commit is contained in:
Jesse van den Kieboom 2013-07-01 09:55:29 +02:00
parent 4df870d91c
commit 893a6e9894

View file

@ -82,7 +82,8 @@ namespace GitgHistory
update_sort_mode(); 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 = new Navigation(application.repository);
d_navigation_model.ref_activated.connect((r) => { d_navigation_model.ref_activated.connect((r) => {
@ -95,9 +96,14 @@ namespace GitgHistory
update_sort_mode(); update_sort_mode();
application.bind_property("repository", d_navigation_model, "repository", BindingFlags.DEFAULT); application.bind_property("repository", d_navigation_model,
application.bind_property("repository", d_commit_list_model, "repository", BindingFlags.DEFAULT); "repository", BindingFlags.DEFAULT);
application.bind_property("repository", this, "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) => { application.notify["repository"].connect((a, r) => {
notify_property("available"); notify_property("available");