f-spot r4350 - trunk/src



Author: sdelcroix
Date: Mon Sep 15 14:42:28 2008
New Revision: 4350
URL: http://svn.gnome.org/viewvc/f-spot?rev=4350&view=rev

Log:
get rid of that temp variable


Modified:
   trunk/src/MainWindow.cs

Modified: trunk/src/MainWindow.cs
==============================================================================
--- trunk/src/MainWindow.cs	(original)
+++ trunk/src/MainWindow.cs	Mon Sep 15 14:42:28 2008
@@ -1421,7 +1421,6 @@
 	public void HandleCommonPhotoCommands (object sender, Gtk.KeyPressEventArgs args) {
 		bool alt = ModifierType.Mod1Mask == (args.Event.State & ModifierType.Mod1Mask);
 		bool shift = ModifierType.ShiftMask == (args.Event.State & ModifierType.ShiftMask);
-		bool handled = true;
 		
 		switch (args.Event.Key) {
 		case Gdk.Key.Delete:
@@ -1455,12 +1454,10 @@
 				HandleRatingMenuSelected (5);
 			break;
 		default:
-			handled = false;
+			return; //do not set the RetVal to true
 			break;
 		}
-
-		if (handled)
-			args.RetVal = handled;
+		args.RetVal = true;
 	}
 
 	void HandleIconViewKeyPressEvent (object sender, Gtk.KeyPressEventArgs args)



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