[gnote] Do not add note window to application



commit 458f883d5756681a27e6dca72378b48031e75e79
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Thu Oct 4 23:24:59 2012 +0300

    Do not add note window to application

 src/note.cpp |   16 ----------------
 src/note.hpp |    3 ---
 2 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/note.cpp b/src/note.cpp
index ef4daec..b5c981b 100644
--- a/src/note.cpp
+++ b/src/note.cpp
@@ -1028,10 +1028,6 @@ namespace gnote {
         sigc::mem_fun(*this, &Note::on_window_destroyed));
       m_window->signal_configure_event().connect(
         sigc::mem_fun(*this, &Note::on_window_configure), false);
-      m_window->signal_show().connect(
-        sigc::mem_fun(*this, &Note::on_window_show));
-      m_window->signal_hide().connect(
-        sigc::mem_fun(*this, &Note::on_window_hide));
 
       m_window->editor()->set_sensitive(enabled());
       if (m_data.data().has_extent())
@@ -1052,18 +1048,6 @@ namespace gnote {
     return m_window;
   }
 
-  void Note::on_window_show()
-  {
-    Gnote::obj().add_window(*m_window);
-  }
-
-
-  void Note::on_window_hide()
-  {
-    Gnote::obj().remove_window(*m_window);
-  }
-
-
   bool Note::is_special() const
   { 
     return (m_manager.start_note_uri() == m_data.data().uri());
diff --git a/src/note.hpp b/src/note.hpp
index f69a36a..424e010 100644
--- a/src/note.hpp
+++ b/src/note.hpp
@@ -388,9 +388,6 @@ private:
 
   Note(NoteData * data, const std::string & filepath, NoteManager & manager);
 
-  void on_window_show();
-  void on_window_hide();
-
   struct ChildWidgetData
   {
     ChildWidgetData(const Glib::RefPtr<Gtk::TextChildAnchor> & _anchor,



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