Hi list,
Just a small patch that adds a "delete from drive" shortcut to both the
icon and the photo view. This should solve bug #301151, i'll also
attach it there.
Regards,
Thomas
Index: src/MainWindow.cs
===================================================================
RCS file: /cvs/gnome/f-spot/src/MainWindow.cs,v
retrieving revision 1.289
diff -u -r1.289 MainWindow.cs
--- src/MainWindow.cs 4 May 2006 00:46:43 -0000 1.289
+++ src/MainWindow.cs 12 May 2006 04:56:38 -0000
@@ -1037,7 +1037,10 @@
void HandleIconViewKeyPressEvent (object sender, Gtk.KeyPressEventArgs args)
{
if (args.Event.Key == Gdk.Key.Delete) {
- HandleRemoveCommand (sender, (EventArgs) args);
+ if (Gdk.ModifierType.ShiftMask == (args.Event.State & Gdk.ModifierType.ShiftMask))
+ HandleDeleteCommand (sender, (EventArgs) args);
+ else
+ HandleRemoveCommand (sender, (EventArgs) args);
}
}
@@ -1142,7 +1145,10 @@
args.RetVal = true;
break;
case Gdk.Key.Delete:
- HandleRemoveCommand (sender, (EventArgs) args);
+ if (Gdk.ModifierType.ShiftMask == (args.Event.State & Gdk.ModifierType.ShiftMask))
+ HandleDeleteCommand(sender, (EventArgs) args);
+ else
+ HandleRemoveCommand (sender, (EventArgs) args);
args.RetVal = true;
break;
default:
_______________________________________________
F-spot-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/f-spot-list