setup: history checkbox on linux

This commit is contained in:
Hylke Bons 2012-05-15 18:59:50 +01:00 committed by Hylke Bons
parent d149d9dce8
commit a283287a04
2 changed files with 14 additions and 3 deletions

View file

@ -327,12 +327,20 @@ namespace SparkleShare {
add_button.Sensitive = button_enabled;
});
};
CheckButton check_button = new CheckButton ("Fetch prior history") {
Active = false
};
check_button.Toggled += delegate {
Controller.HistoryItemChanged (check_button.Active);
};
AddOption (check_button);
AddButton (cancel_button);
AddButton (add_button);
break;
}

View file

@ -127,7 +127,10 @@ namespace SparkleShare {
public void AddOption (Widget widget)
{
OptionArea.Add (widget);
if (OptionArea.Children.Length > 0)
OptionArea.Remove (OptionArea.Children [0]);
OptionArea.Add (widget);
ShowAll ();
}