[gnote] Add signal for setting accelerators
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Add signal for setting accelerators
- Date: Sun, 13 Mar 2016 11:35:14 +0000 (UTC)
commit 722715e2fe10bc0c6f8a28f6cd5da7aec827f45d
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Mar 12 23:08:57 2016 +0200
Add signal for setting accelerators
src/notewindow.cpp | 2 ++
src/notewindow.hpp | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/notewindow.cpp b/src/notewindow.cpp
index 82daa49..ec16293 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -941,6 +941,8 @@ namespace gnote {
GDK_KEY_Right, Gdk::MOD1_MASK, Gtk::ACCEL_VISIBLE);
keybinder.add_accelerator(sigc::mem_fun(*this, &NoteTextMenu::decrease_indent_pressed),
GDK_KEY_Left, Gdk::MOD1_MASK, Gtk::ACCEL_VISIBLE);
+
+ signal_set_accels(keybinder);
}
void NoteTextMenu::on_show()
diff --git a/src/notewindow.hpp b/src/notewindow.hpp
index 429dee8..9393560 100644
--- a/src/notewindow.hpp
+++ b/src/notewindow.hpp
@@ -53,6 +53,8 @@ public:
NoteTextMenu(EmbeddableWidget & widget, const Glib::RefPtr<NoteBuffer> & buffer, UndoManager&
undo_manager);
void set_accels(utils::GlobalKeybinder & keybinder);
void refresh_state();
+
+ sigc::signal<void, utils::GlobalKeybinder> signal_set_accels;
protected:
virtual void on_show() override;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]