tomboy r2349 - in trunk: . Tomboy
- From: sharm svn gnome org
 
- To: svn-commits-list gnome org
 
- Subject: tomboy r2349 - in trunk: . Tomboy
 
- Date: Mon, 16 Feb 2009 22:38:26 +0000 (UTC)
 
Author: sharm
Date: Mon Feb 16 22:38:26 2009
New Revision: 2349
URL: http://svn.gnome.org/viewvc/tomboy?rev=2349&view=rev
Log:
* Tomboy/PreferencesDialog.cs: After successfully configuring sync,
  offer to perform a sync. Fixes bug #553079.
Modified:
   trunk/ChangeLog
   trunk/Tomboy/PreferencesDialog.cs
Modified: trunk/Tomboy/PreferencesDialog.cs
==============================================================================
--- trunk/Tomboy/PreferencesDialog.cs	(original)
+++ trunk/Tomboy/PreferencesDialog.cs	Mon Feb 16 22:38:26 2009
@@ -1161,16 +1161,21 @@
 
 				// Give the user a visual letting them know that connecting
 				// was successful.
+				// TODO: Replace Yes/No with Sync/Close
 				dialog =
 				        new HIGMessageDialog (this,
 				                              Gtk.DialogFlags.Modal,
 				                              Gtk.MessageType.Info,
-				                              Gtk.ButtonsType.Close,
+				                              Gtk.ButtonsType.YesNo,
 				                              Catalog.GetString ("Success! You're connected!"),
 				                              Catalog.GetString (
-				                                      "Tomboy is ready to synchronize your notes."));
-				dialog.Run ();
+				                                      "Tomboy is ready to synchronize your notes. Would you like to synchronize them now?"));
+				int response = dialog.Run ();
 				dialog.Destroy ();
+
+				if (response == (int) Gtk.ResponseType.Yes)
+					// TODO: Put this voodoo in a method somewhere
+					Tomboy.ActionManager ["NoteSynchronizationAction"].Activate ();
 			} else {
 				// TODO: Change the SyncServiceAddin API so the call to
 				// SaveConfiguration has a way of passing back an exception
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]