]> spindle.queued.net Git - midori/commitdiff
Actually emit "quit" even if a function quit the app
authorChristian Dywan <christian@twotoasts.de>
Fri, 12 Dec 2008 09:12:33 +0000 (10:12 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 12 Dec 2008 09:12:33 +0000 (10:12 +0100)
midori/midori-app.c

index 525b8f2a979481abae37b92d84e2773f1a653b2c..76250823a995fe77f3bd183084bd033aff7fb4be 100644 (file)
@@ -171,6 +171,12 @@ _midori_app_add_browser (MidoriApp*     app,
     #endif
 }
 
+void
+_midori_app_quit (MidoriApp* app)
+{
+    gtk_main_quit ();
+}
+
 static void
 midori_app_class_init (MidoriAppClass* class)
 {
@@ -203,7 +209,7 @@ midori_app_class_init (MidoriAppClass* class)
     gobject_class->get_property = midori_app_get_property;
 
     class->add_browser = _midori_app_add_browser;
-    class->quit = midori_app_quit;
+    class->quit = _midori_app_quit;
 
     g_object_class_install_property (gobject_class,
                                      PROP_SETTINGS,
@@ -666,11 +672,13 @@ midori_app_add_browser (MidoriApp*     app,
  * @app: a #MidoriApp
  *
  * Quits the #MidoriApp singleton.
+ *
+ * Since 0.1.2 the "quit" signal is always emitted before quitting.
  **/
 void
 midori_app_quit (MidoriApp* app)
 {
     g_return_if_fail (MIDORI_IS_APP (app));
 
-    gtk_main_quit ();
+    g_signal_emit (app, signals[QUIT], 0);
 }