[gnote] Set focus to notes list when showing it



commit 22919b0662b46026ee37c93acd731aabbaf700cb
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Jul 7 21:41:41 2013 +0300

    Set focus to notes list when showing it
    
    Fixes Bug 700611.

 src/searchnoteswidget.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/searchnoteswidget.cpp b/src/searchnoteswidget.cpp
index 5929a9a..c7d50fd 100644
--- a/src/searchnoteswidget.cpp
+++ b/src/searchnoteswidget.cpp
@@ -1368,6 +1368,7 @@ void SearchNotesWidget::foreground()
   Gtk::Window *win = dynamic_cast<Gtk::Window*>(host());
   if(win) {
     win->add_accel_group(m_accel_group);
+    win->set_focus(*m_tree);
   }
 }
 


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