[intro] Add cancel button to add dialog when needed
This commit is contained in:
parent
f5289c0160
commit
93bcc84065
|
@ -443,16 +443,31 @@ namespace SparkleShare {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
if (StepTwoOnly) {
|
||||||
|
|
||||||
|
Button cancel_button = new Button (_("Cancel"));
|
||||||
|
|
||||||
|
cancel_button.Clicked += delegate {
|
||||||
|
Destroy ();
|
||||||
|
};
|
||||||
|
|
||||||
|
controls.Add (cancel_button);
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
Button skip_button = new Button (_("Skip"));
|
Button skip_button = new Button (_("Skip"));
|
||||||
|
|
||||||
skip_button.Clicked += delegate {
|
skip_button.Clicked += delegate {
|
||||||
ShowStepThree ();
|
ShowStepThree ();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
if (!StepTwoOnly)
|
|
||||||
controls.Add (skip_button);
|
controls.Add (skip_button);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
controls.Add (AddButton);
|
controls.Add (AddButton);
|
||||||
|
|
||||||
layout_vertical.PackStart (header, false, false, 0);
|
layout_vertical.PackStart (header, false, false, 0);
|
||||||
|
|
Loading…
Reference in a new issue