tomboy r1770 - in trunk: . Tomboy data



Author: sharm
Date: Sun Jan 13 14:11:18 2008
New Revision: 1770
URL: http://svn.gnome.org/viewvc/tomboy?rev=1770&view=rev

Log:
* Tomboy/Tray.cs, Tomboy/Preferences.cs, data/tomboy.schemas.in: Added
  preference to enable middle-click paste on the Tomboy icon, which
  now defaults to false.  Fixes bug #359167.  Did not make this
  preference visible in the preferences dialog.

Modified:
   trunk/ChangeLog
   trunk/Tomboy/Preferences.cs
   trunk/Tomboy/Tray.cs
   trunk/data/tomboy.schemas.in

Modified: trunk/Tomboy/Preferences.cs
==============================================================================
--- trunk/Tomboy/Preferences.cs	(original)
+++ trunk/Tomboy/Preferences.cs	Sun Jan 13 14:11:18 2008
@@ -13,6 +13,7 @@
 		public const string ENABLE_KEYBINDINGS = "/apps/tomboy/enable_keybindings";
 		public const string ENABLE_STARTUP_NOTES = "/apps/tomboy/enable_startup_notes";
 		public const string ENABLE_AUTO_BULLETED_LISTS = "/apps/tomboy/enable_bulleted_lists";
+		public const string ENABLE_ICON_PASTE = "/apps/tomboy/enable_icon_paste";
 
 		public const string START_NOTE_URI = "/apps/tomboy/start_note";
 		public const string CUSTOM_FONT_FACE = "/apps/tomboy/custom_font_face";
@@ -71,6 +72,9 @@
 			case ENABLE_AUTO_BULLETED_LISTS:
 				return true;
 
+			case ENABLE_ICON_PASTE:
+				return false;
+
 			case START_NOTE_URI:
 				return String.Empty;
 

Modified: trunk/Tomboy/Tray.cs
==============================================================================
--- trunk/Tomboy/Tray.cs	(original)
+++ trunk/Tomboy/Tray.cs	Sun Jan 13 14:11:18 2008
@@ -176,10 +176,12 @@
 				args.RetVal = true;
 				break;
 			case 2:
-				// Give some visual feedback
-				Gtk.Drag.Highlight (this);
-				args.RetVal = PastePrimaryClipboard ();
-				Gtk.Drag.Unhighlight (this);
+				if ((bool) Preferences.Get (Preferences.ENABLE_ICON_PASTE)) {
+					// Give some visual feedback
+					Gtk.Drag.Highlight (this);
+					args.RetVal = PastePrimaryClipboard ();
+					Gtk.Drag.Unhighlight (this);
+				}
 				break;
 			}
 		}

Modified: trunk/data/tomboy.schemas.in
==============================================================================
--- trunk/data/tomboy.schemas.in	(original)
+++ trunk/data/tomboy.schemas.in	Sun Jan 13 14:11:18 2008
@@ -46,6 +46,20 @@
     </schema>
 
     <schema>
+      <key>/schemas/apps/tomboy/enable_icon_paste</key>
+      <applyto>/apps/tomboy/enable_icon_paste</applyto>
+      <owner>tomboy</owner>
+      <type>bool</type>
+      <default>false</default>
+      <locale name="C">
+         <short>Enable Middle-Click Paste On Icon.</short>
+         <long>
+         Enable this option if you want to be able to middle-click the Tomboy icon to paste timestamped content into the Start Here note.
+         </long>
+      </locale>
+    </schema>
+
+    <schema>
       <key>/schemas/apps/tomboy/enable_custom_font</key>
       <applyto>/apps/tomboy/enable_custom_font</applyto>
       <owner>tomboy</owner>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]