From 6b40913361167ed187077e4d42d0c1c27cdac787 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 12 Dec 2008 10:12:33 +0100 Subject: [PATCH] Actually emit "quit" even if a function quit the app --- midori/midori-app.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/midori/midori-app.c b/midori/midori-app.c index 525b8f2a..76250823 100644 --- a/midori/midori-app.c +++ b/midori/midori-app.c @@ -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); } -- 2.39.5