[gnome-notes] Restore Move to Trash shortcut



commit f8dd8151b016347cd83e8d1204f3aa59f2c00346
Author: Sabri Ünal <libreajans gmail com>
Date:   Thu Feb 13 12:46:52 2020 +0300

    Restore Move to Trash shortcut
    
    Thanks to João Vieira (@jvieira.tpt)

 src/bjb-application.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/bjb-application.c b/src/bjb-application.c
index 83107dd..807f812 100644
--- a/src/bjb-application.c
+++ b/src/bjb-application.c
@@ -392,6 +392,7 @@ bijiben_startup (GApplication *application)
 
   const gchar *vaccels_redo[] = {"<Primary><Shift>z", NULL};
   const gchar *vaccels_undo[] = {"<Primary>z", NULL};
+  const gchar *vaccels_trash[] = {"<Primary>Delete", NULL};
 
   G_APPLICATION_CLASS (bjb_application_parent_class)->startup (application);
   self = BJB_APPLICATION (application);
@@ -400,6 +401,8 @@ bijiben_startup (GApplication *application)
 
   gtk_application_set_accels_for_action (GTK_APPLICATION (application), "win.redo", vaccels_redo);
   gtk_application_set_accels_for_action (GTK_APPLICATION (application), "win.undo", vaccels_undo);
+  gtk_application_set_accels_for_action (GTK_APPLICATION (application), "win.trash", vaccels_trash);
+
   g_action_map_add_action_entries (G_ACTION_MAP (application),
                                    app_entries,
                                    G_N_ELEMENTS (app_entries),


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