[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

@ -110,6 +110,9 @@ namespace SparkleShare {
HookUpViews ();
ViewLeft.ScrolledWindow.Hadjustment = ViewRight.ScrolledWindow.Hadjustment;
ViewLeft.ScrolledWindow.Vadjustment = ViewRight.ScrolledWindow.Vadjustment;
};
ViewRight.ComboBox.Changed += delegate {
@ -120,6 +123,9 @@ namespace SparkleShare {
HookUpViews ();
ViewRight.ScrolledWindow.Hadjustment = ViewLeft.ScrolledWindow.Hadjustment;
ViewRight.ScrolledWindow.Vadjustment = ViewLeft.ScrolledWindow.Vadjustment;
};
layout_horizontal.PackStart (ViewLeft);