[gnote] Add signal_quit to Gnote
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnote] Add signal_quit to Gnote
- Date: Sun, 15 May 2011 19:24:35 +0000 (UTC)
commit b5d9bb0518f4a6f6c182a209973eb4c78299b584
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date:   Sun May 15 22:11:07 2011 +0300
    Add signal_quit to Gnote
    
    A replacement from Gtk::Main::signal_quit, which is not available in Gtkmm 3.
 src/gnote.cpp |    4 ++--
 src/gnote.hpp |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gnote.cpp b/src/gnote.cpp
index 0b804ff..9ee99d9 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -134,14 +134,14 @@ namespace gnote {
 
       panel::register_applet();
 #endif
-      return 0;
-
     }
     else {
       DBG_OUT("starting tray icon");
       //register session manager restart
       start_tray_icon();
     }
+
+    signal_quit();
     return 0;
   }
 
diff --git a/src/gnote.hpp b/src/gnote.hpp
index 4337fb6..9227cbf 100644
--- a/src/gnote.hpp
+++ b/src/gnote.hpp
@@ -88,6 +88,7 @@ public:
     {
       m_tray = tray;
     }
+  sigc::signal<void> signal_quit;
 private:
   void start_note_created(const Note::Ptr & start_note);
   std::string get_note_path(const std::string & override_path);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]