// The page shown whilst syncing private void ShowSyncingPage(string name) { Reset (); VBox layout_vertical = new VBox (false, 0); Label header = new Label ("<span size='large'><b>" + String.Format (_("Syncing folder ‘{0}’…"), name) + "</b></span>") { UseMarkup = true, Xalign = 0, Wrap = true }; Label information = new Label (_("This may take a while.\n") + _("Are you sure it’s not coffee o'clock?")) { UseMarkup = true, Xalign = 0 }; Button button = new Button () { Sensitive = false, Label = _("Finish") }; button.Clicked += delegate { Close (); }; AddButton (button); layout_vertical.PackStart (header, false, false, 0); layout_vertical.PackStart (information, false, false, 21); this.progress_bar_pulse_timer.Elapsed += delegate { Application.Invoke (delegate { progress_bar.Pulse (); }); }; if (this.progress_bar.Parent != null) layout_vertical.Reparent(this.progress_bar); layout_vertical.PackStart (this.progress_bar, false, false, 54); Add (layout_vertical); ShowAll (); }