[gnote] Add shortcuts to find next/previous



commit 692a9a9c2773e4ea79fb1a242461651fca63bf69
Author: Robert Roth <robert roth off gmail com>
Date:   Fri Jan 2 21:52:13 2015 +0200

    Add shortcuts to find next/previous
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700624

 src/recentchanges.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 0a5ded8..1bd6442 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -239,6 +239,7 @@ namespace gnote {
     find_next_button->set_always_show_image(true);
     find_next_button->signal_clicked()
       .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_find_next_button_clicked));
+    find_next_button->add_accelerator("activate", get_accel_group(), GDK_KEY_Return, (Gdk::ModifierType)0, 
(Gtk::AccelFlags) 0);
     find_next_button->show();
     m_find_next_prev_box.attach(*find_next_button, 0, 0, 1, 1);
 
@@ -247,6 +248,7 @@ namespace gnote {
     find_prev_button->set_always_show_image(true);
     find_prev_button->signal_clicked()
       .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_find_prev_button_clicked));
+    find_prev_button->add_accelerator("activate", get_accel_group(), GDK_KEY_Return, Gdk::SHIFT_MASK, 
(Gtk::AccelFlags) 0);
     find_prev_button->show();
     m_find_next_prev_box.attach(*find_prev_button, 1, 0, 1, 1);
 


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