setup: history checkbox on linux
This commit is contained in:
parent
d149d9dce8
commit
a283287a04
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue