[SparkleDiff] Sync scrollbars after changing one of the revisions

This commit is contained in:
Hylke Bons 2010-06-30 12:16:35 +01:00
parent 947edeb7a4
commit 71dc2eda29

View file

@ -109,6 +109,9 @@ namespace SparkleShare {
ViewLeft.SetImage (revision_image);
HookUpViews ();
ViewLeft.ScrolledWindow.Hadjustment = ViewRight.ScrolledWindow.Hadjustment;
ViewLeft.ScrolledWindow.Vadjustment = ViewRight.ScrolledWindow.Vadjustment;
};
@ -120,6 +123,9 @@ namespace SparkleShare {
HookUpViews ();
ViewRight.ScrolledWindow.Hadjustment = ViewLeft.ScrolledWindow.Hadjustment;
ViewRight.ScrolledWindow.Vadjustment = ViewLeft.ScrolledWindow.Vadjustment;
};
layout_horizontal.PackStart (ViewLeft);