[gnome-notes/libreajans/gnome-notes-helpoverlay: 2/5] Remove redundant shortcut function: bjb_main_toolbar_setup_menu



commit a417247ea8c2a18e288381fbe07a0b19c4aef4e7
Author: Sabri Ünal <libreajans gmail com>
Date:   Thu Feb 13 12:33:47 2020 +0300

    Remove redundant shortcut function: bjb_main_toolbar_setup_menu

 src/bjb-main-toolbar.c | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/src/bjb-main-toolbar.c b/src/bjb-main-toolbar.c
index 18fdd6b..00d01d3 100644
--- a/src/bjb-main-toolbar.c
+++ b/src/bjb-main-toolbar.c
@@ -658,18 +658,6 @@ populate_main_toolbar(BjbMainToolbar *self)
   }
 }
 
-static void
-bjb_main_toolbar_setup_menu (BjbMainToolbar *self)
-{
-  gtk_widget_add_accelerator (self->undo_item, "activate", self->accel, GDK_KEY_z,
-                              GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
-  gtk_widget_add_accelerator (self->redo_item, "activate", self->accel, GDK_KEY_z,
-                              GDK_CONTROL_MASK | GDK_SHIFT_MASK, GTK_ACCEL_VISIBLE);
-  gtk_widget_add_accelerator (self->trash_item, "activate", self->accel,
-                              GDK_KEY_Delete, GDK_CONTROL_MASK,
-                              GTK_ACCEL_VISIBLE);
-}
-
 static void
 bjb_main_toolbar_constructed (GObject *obj)
 {
@@ -680,7 +668,6 @@ bjb_main_toolbar_constructed (GObject *obj)
   gtk_widget_add_accelerator (self->new_button, "clicked", self->accel, GDK_KEY_n,
                               GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
 
-  bjb_main_toolbar_setup_menu (self);
   g_signal_connect_swapped (self->window, "view-changed",
                             G_CALLBACK (populate_main_toolbar), self);
 


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