[gnote] Replease entry by search entry in find bar



commit d19c5c2f1316454d17a1a520ac7c55f716ea7a0b
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Mon Jan 21 22:23:08 2013 +0200

    Replease entry by search entry in find bar
    
    In note find bar replace entry by search entry.
    Also remove the redundant label.

 src/notewindow.cpp |    5 -----
 src/notewindow.hpp |    6 +++---
 2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/notewindow.cpp b/src/notewindow.cpp
index 20d20f2..4a66ac6 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -712,11 +712,6 @@ namespace gnote {
     button->show ();
     pack_start(*button, false, false, 4);
 
-    Gtk::Label *label = manage(new Gtk::Label(_("_Find:"), true));
-    label->show();
-    pack_start(*label, false, false, 0);
-
-    label->set_mnemonic_widget(m_entry);
     m_entry.signal_changed().connect(sigc::mem_fun(*this, &NoteFindBar::on_find_entry_changed));
     m_entry.signal_activate().connect(sigc::mem_fun(*this, &NoteFindBar::on_find_entry_activated));
     m_entry.show();
diff --git a/src/notewindow.hpp b/src/notewindow.hpp
index 0d0981f..941ea62 100644
--- a/src/notewindow.hpp
+++ b/src/notewindow.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2011-2012 Aurimas Cernius
+ * Copyright (C) 2011-2013 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -25,7 +25,7 @@
 #define _NOTEWINDOW_HPP__
 
 #include <gtkmm/accelgroup.h>
-#include <gtkmm/entry.h>
+#include <gtkmm/searchentry.h>
 #include <gtkmm/toolbar.h>
 #include <gtkmm/toolbutton.h>
 #include <gtkmm/menu.h>
@@ -269,7 +269,7 @@ private:
                               std::list<Match> & matches);
 
   Note           & m_note;
-  Gtk::Entry       m_entry;
+  Gtk::SearchEntry m_entry;
   Gtk::Button      m_next_button;
   Gtk::Button      m_prev_button;
   std::list<Match> m_current_matches;



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