Ensure to sync repository to diff view

https://bugzilla.gnome.org/show_bug.cgi?id=768650
This commit is contained in:
Jesse van den Kieboom 2016-08-17 19:42:20 +02:00
parent f9ecad6db9
commit f687963a10
2 changed files with 10 additions and 2 deletions

View file

@ -1955,6 +1955,11 @@ namespace GitgCommit
d_main.button_discard,
"sensitive",
BindingFlags.DEFAULT);
application.bind_property("repository",
d_main.diff_view,
"repository",
BindingFlags.SYNC_CREATE);
}
}
}

View file

@ -32,12 +32,15 @@ namespace GitgDiff
private ulong d_selection_changed_id;
construct
protected override void constructed()
{
base.constructed();
d_diff = new Gitg.DiffView();
d_diff.show_parents = true;
d_diff.repository = application.repository;
application.bind_property("repository", d_diff, "repository", BindingFlags.SYNC_CREATE);
d_diff.show();