[gnome-photos] application: Use the delete key as a shortcut for deleting
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application: Use the delete key as a shortcut for deleting
- Date: Mon, 26 Oct 2015 15:29:11 +0000 (UTC)
commit 8453269e3d8dbfe3f9dc94a5e7ac04f89f0750db
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Oct 26 15:39:59 2015 +0100
application: Use the delete key as a shortcut for deleting
src/photos-application.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index bec89c2..7c65cc0 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -958,6 +958,7 @@ photos_application_startup (GApplication *application)
GtkSettings *settings;
GVariant *state;
GVariantType *parameter_type;
+ const gchar *delete_accels[2] = {"Delete", "KP_Delete", NULL};
const gchar *fullscreen_accels[2] = {"F11", NULL};
const gchar *gear_menu_accels[2] = {"F10", NULL};
const gchar *print_current_accels[2] = {"<Primary>p", NULL};
@@ -1103,6 +1104,7 @@ photos_application_startup (GApplication *application)
g_object_unref (action);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.quit", quit_accels);
+ gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.delete", delete_accels);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.fullscreen", fullscreen_accels);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.gear-menu", gear_menu_accels);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.print-current", print_current_accels);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]