[gnote] Replace std::string by Glib::ustring in NoteWindow



commit 682105813382a57a01078a3fe3e1d567b30e2d7a
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Feb 4 14:53:50 2017 +0200

    Replace std::string by Glib::ustring in NoteWindow

 src/notewindow.cpp |    6 +++---
 src/notewindow.hpp |    8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/notewindow.cpp b/src/notewindow.cpp
index 83705ff..3214e23 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -159,7 +159,7 @@ namespace gnote {
     return m_name;
   }
 
-  void NoteWindow::set_name(const std::string & name)
+  void NoteWindow::set_name(const Glib::ustring & name)
   {
     m_name = name;
     signal_name_changed(m_name);
@@ -505,7 +505,7 @@ namespace gnote {
   }
 
 
-  void NoteWindow::on_note_tag_removed(const NoteBase::Ptr&, const std::string & tag)
+  void NoteWindow::on_note_tag_removed(const NoteBase::Ptr&, const Glib::ustring & tag)
   {
     if(tag == m_template_tag->normalized_name()) {
       m_template_widget->hide();
@@ -679,7 +679,7 @@ namespace gnote {
   }
 
 
-  void NoteFindHandler::perform_search(const std::string & txt)
+  void NoteFindHandler::perform_search(const Glib::ustring & txt)
   {
     cleanup_matches();
     if(txt.empty()) {
diff --git a/src/notewindow.hpp b/src/notewindow.hpp
index 78386c2..f54a9ab 100644
--- a/src/notewindow.hpp
+++ b/src/notewindow.hpp
@@ -98,7 +98,7 @@ class NoteFindHandler
 {
 public:
   NoteFindHandler(Note & );
-  void perform_search(const std::string & text);
+  void perform_search(const Glib::ustring & text);
   bool goto_next_result();
   bool goto_previous_result();
 private:
@@ -137,7 +137,7 @@ public:
   ~NoteWindow();
 
   virtual Glib::ustring get_name() const override;
-  void set_name(const std::string & name);
+  void set_name(const Glib::ustring & name);
   virtual void foreground() override;
   virtual void background() override;
   virtual void hint_size(int & width, int & height) override;
@@ -236,7 +236,7 @@ private:
   void on_save_selection_check_button_toggled();
   void on_save_title_check_button_toggled();
   void on_note_tag_added(const NoteBase&, const Tag::Ptr&);
-  void on_note_tag_removed(const NoteBase::Ptr&, const std::string&);
+  void on_note_tag_removed(const NoteBase::Ptr&, const Glib::ustring&);
   void link_button_clicked();
   void open_help_activate();
   void change_depth_right_handler();
@@ -248,7 +248,7 @@ private:
   void on_text_button_clicked();
 
   Note                        & m_note;
-  std::string                   m_name;
+  Glib::ustring                 m_name;
   int                           m_height;
   int                           m_width;
   Glib::RefPtr<Gtk::AccelGroup> m_accel_group;


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