From 71dc2eda293d05df1abff4d387a6a766d01039f1 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 30 Jun 2010 12:16:35 +0100 Subject: [PATCH] [SparkleDiff] Sync scrollbars after changing one of the revisions --- SparkleDiff/SparkleDiff.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SparkleDiff/SparkleDiff.cs b/SparkleDiff/SparkleDiff.cs index cdd948b3..4d3b3c66 100644 --- a/SparkleDiff/SparkleDiff.cs +++ b/SparkleDiff/SparkleDiff.cs @@ -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);