tomboy r2316 - in trunk: . Tomboy



Author: sharm
Date: Mon Feb  2 07:22:07 2009
New Revision: 2316
URL: http://svn.gnome.org/viewvc/tomboy?rev=2316&view=rev

Log:
* Tomboy/Tray.cs: Match accelerators correctly (they still don't all
  work, though). Whitespaces fixes.

Modified:
   trunk/ChangeLog
   trunk/Tomboy/Tray.cs

Modified: trunk/Tomboy/Tray.cs
==============================================================================
--- trunk/Tomboy/Tray.cs	(original)
+++ trunk/Tomboy/Tray.cs	Mon Feb  2 07:22:07 2009
@@ -355,7 +355,7 @@
 				if (item != null)
 					GConfKeybindingToAccel.AddAccelerator (
 					        item,
-					        Preferences.KEYBINDING_CREATE_NEW_NOTE);
+					        Preferences.KEYBINDING_OPEN_RECENT_CHANGES);
 
 				// Open Start Here Keybinding
 				item =
@@ -364,7 +364,7 @@
 				if (item != null)
 					GConfKeybindingToAccel.AddAccelerator (
 					        item,
-					        Preferences.KEYBINDING_OPEN_RECENT_CHANGES);
+					        Preferences.KEYBINDING_OPEN_START_HERE);
 			}
 
 			return menu;
@@ -466,9 +466,9 @@
 				recent_notes.Add (item);
 
 				list_size++;
-
+				
 				bool enable_keybindings = (bool)
-				                          Preferences.Get (Preferences.ENABLE_KEYBINDINGS);
+					                  Preferences.Get (Preferences.ENABLE_KEYBINDINGS);
 				if (enable_keybindings)
 					GConfKeybindingToAccel.AddAccelerator (
 					        item,
@@ -579,11 +579,11 @@
 
 				return binding;
 			} catch {
-			return null;
+				return null;
+			}
 		}
-	}
 
-	public static void AddAccelerator (Gtk.MenuItem item, string gconf_path)
+		public static void AddAccelerator (Gtk.MenuItem item, string gconf_path)
 		{
 			uint keyval;
 			Gdk.ModifierType mods;



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