[gnote] Replace Gtk::Main::signal_quit by Gnote::signal_quit



commit 6350ac0cce4cac8397c1814777f5e8a4a64536dd
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date:   Sun May 15 22:13:52 2011 +0300

    Replace Gtk::Main::signal_quit by Gnote::signal_quit
    
    Gtk::Main::signal_quit is not available in Gtkmm 3.

 src/recentchanges.cpp |    6 ++----
 src/recentchanges.hpp |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index fa180fe..f6cb528 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -215,8 +215,7 @@ namespace gnote {
     notebooks::NotebookManager::instance().signal_note_added_to_notebook()
       .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_note_removed_to_notebook));
                         
-    Gtk::Main::signal_quit()
-      .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_exiting_event));
+    Gnote::obj().signal_quit.connect(sigc::mem_fun(*this, &NoteRecentChanges::on_exiting_event));
 
   }
 
@@ -1611,10 +1610,9 @@ namespace gnote {
   }
 
 
-  bool NoteRecentChanges::on_exiting_event()
+  void NoteRecentChanges::on_exiting_event()
   {
     save_position();
-    return false;
   }
 
 }
diff --git a/src/recentchanges.hpp b/src/recentchanges.hpp
index 136f1a4..ceb6273 100644
--- a/src/recentchanges.hpp
+++ b/src/recentchanges.hpp
@@ -137,7 +137,7 @@ private:
   std::string get_search_text();
   void save_position ();
   void restore_position();
-  bool on_exiting_event();
+  void on_exiting_event();
 
   class RecentNotesColumnTypes
     : public Gtk::TreeModelColumnRecord



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