[gnote] Fix show help on F1 in main window search mode



commit 0616e36957632c1288b9e0b9308044f6eafc4d16
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Mon Apr 22 22:47:06 2013 +0300

    Fix show help on F1 in main window search mode

 src/recentchanges.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 173b62f..203b1f3 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -78,7 +78,7 @@ namespace gnote {
     add (m_content_vbox);
     signal_delete_event().connect(sigc::mem_fun(*this, &NoteRecentChanges::on_delete));
     signal_key_press_event()
-      .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_key_pressed)); // For Escape
+      .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_key_pressed));
     IGnote::obj().signal_quit
       .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_close_window));// to save size/pos
 
@@ -245,6 +245,9 @@ namespace gnote {
         foreground_embedded(m_search_notes_widget);
       }
       break;
+    case GDK_KEY_F1:
+      utils::show_help("gnote", "", get_screen()->gobj(), this);
+      break;
     default:
       break;
     }


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