From d93b864fdb1f5bb8812444d872a8ac46335af328 Mon Sep 17 00:00:00 2001 From: tedjk Date: Mon, 18 May 2015 16:50:56 +0200 Subject: [PATCH] removed the last stock gtk binding --- juci/config.json | 1 + juci/window.cc | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/juci/config.json b/juci/config.json index a97637f..9b3e661 100644 --- a/juci/config.json +++ b/juci/config.json @@ -38,6 +38,7 @@ "open_file": "o", "save": "s", "save_as": "s", + "quit": "q", "split_window": "s", "close_tab": "w", diff --git a/juci/window.cc b/juci/window.cc index 7504fb7..bf084f1 100644 --- a/juci/window.cc +++ b/juci/window.cc @@ -16,7 +16,9 @@ Window::Window() : set_default_size(600, 400); add(window_box_); keybindings_.action_group_menu()->add(Gtk::Action::create("FileQuit", - Gtk::Stock::QUIT), + "Quit juCi++"), + Gtk::AccelKey(keybindings_.config_ + .key_map()["quit"]), [this]() { OnWindowHide(); });