[gnote] Allow closing window via Ctrl+Q
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Allow closing window via Ctrl+Q
- Date: Sun, 27 Sep 2015 12:01:40 +0000 (UTC)
commit 9d8ab60b9df85d89eaa95ceb200c197dc69e59da
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Sep 27 15:00:27 2015 +0300
Allow closing window via Ctrl+Q
Fixes Bug 755399.
src/recentchanges.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index dd7940a..d838809 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -97,6 +97,8 @@ namespace gnote {
.connect(sigc::mem_fun(*this, &NoteRecentChanges::close_window));// to save size/pos
m_keybinder.add_accelerator(sigc::mem_fun(*this, &NoteRecentChanges::close_window),
GDK_KEY_W, Gdk::CONTROL_MASK, (Gtk::AccelFlags)0);
+ m_keybinder.add_accelerator(sigc::mem_fun(*this, &NoteRecentChanges::close_window),
+ GDK_KEY_Q, Gdk::CONTROL_MASK, (Gtk::AccelFlags)0);
m_window_menu_default = make_window_menu(m_window_actions_button, std::vector<Gtk::MenuItem*>());
embed_widget(m_search_notes_widget);
@@ -694,6 +696,7 @@ namespace gnote {
}
Gtk::MenuItem *item = manage(new Gtk::MenuItem(_("_Close"), true));
item->add_accelerator("activate", get_accel_group(), GDK_KEY_W, Gdk::CONTROL_MASK, Gtk::ACCEL_VISIBLE);
+ item->add_accelerator("activate", get_accel_group(), GDK_KEY_Q, Gdk::CONTROL_MASK, Gtk::ACCEL_VISIBLE);
item->signal_activate().connect(sigc::mem_fun(*this, &NoteRecentChanges::close_window));
menu->append(*item);
menu->property_attach_widget() = button;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]