From 93bcc84065e8f8e9b999a235b8b39617406d074e Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Tue, 10 Aug 2010 15:17:29 +0100 Subject: [PATCH] [intro] Add cancel button to add dialog when needed --- SparkleShare/SparkleIntro.cs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/SparkleShare/SparkleIntro.cs b/SparkleShare/SparkleIntro.cs index bdbbac02..fff03ca0 100644 --- a/SparkleShare/SparkleIntro.cs +++ b/SparkleShare/SparkleIntro.cs @@ -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")); skip_button.Clicked += delegate { ShowStepThree (); }; - - if (!StepTwoOnly) controls.Add (skip_button); + } + + controls.Add (AddButton); layout_vertical.PackStart (header, false, false, 0);