Delete shortcut
- From: Thomas Van Machelen <thomas vanmachelen gmail com>
- To: f-spot <f-spot-list gnome org>
- Subject: Delete shortcut
- Date: Fri, 12 May 2006 07:13:10 +0200
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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]