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



commit 8ac217f8e7800bac98cfbff0ccc62493107fa1ee
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date:   Sun May 15 22:12:24 2011 +0300

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

 src/notemanager.cpp |    5 ++---
 src/notemanager.hpp |    2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/notemanager.cpp b/src/notemanager.cpp
index 18695ba..130129a 100644
--- a/src/notemanager.cpp
+++ b/src/notemanager.cpp
@@ -160,7 +160,7 @@ namespace gnote {
       load_notes ();
     }
 
-    Gtk::Main::signal_quit().connect(sigc::mem_fun(*this, &NoteManager::on_exiting_event), 1);
+    Gnote::obj().signal_quit.connect(sigc::mem_fun(*this, &NoteManager::on_exiting_event));
   }
 
   NoteManager::~NoteManager()
@@ -411,7 +411,7 @@ namespace gnote {
     }
   }
 
-  bool NoteManager::on_exiting_event()
+  void NoteManager::on_exiting_event()
   {
     m_addin_mgr->shutdown_application_addins();
 
@@ -430,7 +430,6 @@ namespace gnote {
 
       note->save();
     }
-    return true;
   }
 
   void NoteManager::delete_note(const Note::Ptr & note)
diff --git a/src/notemanager.hpp b/src/notemanager.hpp
index 5661e3a..9bc16e8 100644
--- a/src/notemanager.hpp
+++ b/src/notemanager.hpp
@@ -116,7 +116,7 @@ namespace gnote {
     void post_load();
     bool first_run() const;
     void create_notes_dir() const;
-    bool on_exiting_event();
+    void on_exiting_event();
     std::string make_new_file_name() const;
     std::string make_new_file_name(const std::string & guid) const;
     Note::Ptr create_new_note (std::string title, const std::string & guid);



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