From 7b9503a4f866ce915ad0dfea607f3b734c685e98 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Wed, 24 Sep 2014 09:57:52 -0700 Subject: [PATCH] docs: Clarify relationship of quit() to hold count Calling g_application_quit() ignores the hold count; this patch adds a warning to the documentation about other code having a hold on the application and expecting it to exist. https://bugzilla.gnome.org/show_bug.cgi?id=737278 --- gio/gapplication.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/gapplication.c b/gio/gapplication.c index 0ee6ca6e8..5350c873b 100644 --- a/gio/gapplication.c +++ b/gio/gapplication.c @@ -2624,6 +2624,10 @@ g_application_set_default (GApplication *application) * calling only the 'shutdown' function before doing so. * * The hold count is ignored. + * Take care if your code has called g_application_hold() on the application and + * is therefore still expecting it to exist. + * (Note that you may have called g_application_hold() indirectly, for example + * through gtk_application_add_window().) * * The result of calling g_application_run() again after it returns is * unspecified.