[sparklediff] Show two different revisions by default

This commit is contained in:
Hylke Bons 2010-07-13 20:19:11 +01:00
parent bfc0b883d3
commit f222439ed0

View file

@ -37,12 +37,12 @@ namespace SparkleShare {
public ScrolledWindow ScrolledWindow; public ScrolledWindow ScrolledWindow;
public IconView IconView; public IconView IconView;
public int Selected;
private ToggleButton ToggleButton; private ToggleButton ToggleButton;
private Viewport Viewport; private Viewport Viewport;
private ListStore Store; private ListStore Store;
private Image Image; private Image Image;
private int Selected;
private int Count; private int Count;
@ -208,7 +208,7 @@ namespace SparkleShare {
{ {
if (i > -1 && i <= Count) { if (i > -1 && i <= Count) {
Selected = i; Selected = i;Console.WriteLine ("selected: " + i);
return true; return true;
} }
@ -243,7 +243,7 @@ namespace SparkleShare {
{ {
// Select the second revision // Select the second revision
SetSelected (1); Selected = 1;
// Take reading direction for time into account // Take reading direction for time into account
if (Direction == Gtk.TextDirection.Ltr) if (Direction == Gtk.TextDirection.Ltr)
@ -263,8 +263,6 @@ namespace SparkleShare {
public RightRevisionView () : base () public RightRevisionView () : base ()
{ {
SetSelected (0);
// Take reading direction for time into account // Take reading direction for time into account
if (Direction == Gtk.TextDirection.Ltr) if (Direction == Gtk.TextDirection.Ltr)
ScrolledWindow.Placement = CornerType.TopLeft; ScrolledWindow.Placement = CornerType.TopLeft;