summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar LaserEyess <lasereyess@lasereyess.net>2018-03-02 16:05:09 -0500
committerGravatar TingPing <tingping@tingping.se>2018-07-15 21:57:14 +0200
commit32ca51540d3b00f4fc46fb7c3ea028d2b85a724f (patch)
tree2760a3a9495247e42f8e3721ac9eadc03a322509 /src
parent06200cb57a9b454dacc206d5c7063e72ff2a1720 (diff)
Add 'Ctrl+q' to quit from keyboad
Diffstat (limited to 'src')
-rw-r--r--src/trg-menu-bar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/trg-menu-bar.c b/src/trg-menu-bar.c
index d5ae375..624f86f 100644
--- a/src/trg-menu-bar.c
+++ b/src/trg-menu-bar.c
@@ -699,6 +699,8 @@ static GtkWidget *trg_menu_bar_file_file_menu_new(TrgMenuBar * menu)
priv->mb_quit =
trg_menu_bar_item_new(GTK_MENU_SHELL(fileMenu), _("_Quit"),
GTK_STOCK_QUIT, TRUE);
+ trg_menu_bar_accel_add(menu, priv->mb_quit, GDK_q,
+ GDK_CONTROL_MASK);
gtk_menu_item_set_submenu(GTK_MENU_ITEM(file), fileMenu);