diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2021-06-10 12:44:13 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2021-06-10 12:44:13 +0000 |
commit | 76ecdeffd0570ebf46aa5709ee8bd9af7f68ef74 (patch) | |
tree | aa3e8485e04d89521f2104c929f1a1a3c4418094 | |
parent | fa21de35c97e57826a9bf995799aa2a8dbf6da8f (diff) | |
parent | 955307208f3c8a585ce8fc79195c5c9a0b7d843b (diff) | |
download | glib-76ecdeffd0570ebf46aa5709ee8bd9af7f68ef74.tar.gz |
Merge branch '2409-application-must-be-registered' into 'main'
gapplication: Guard g_application_mark_busy()
Closes #2409
See merge request GNOME/glib!2111
-rw-r--r-- | gio/gapplication.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/gapplication.c b/gio/gapplication.c index d0b37b6e2..cbc467a92 100644 --- a/gio/gapplication.c +++ b/gio/gapplication.c @@ -2832,6 +2832,8 @@ g_application_quit (GApplication *application) * * To cancel the busy indication, use g_application_unmark_busy(). * + * The application must be registered before calling this function. + * * Since: 2.38 **/ void @@ -2840,6 +2842,7 @@ g_application_mark_busy (GApplication *application) gboolean was_busy; g_return_if_fail (G_IS_APPLICATION (application)); + g_return_if_fail (application->priv->is_registered); was_busy = (application->priv->busy_count > 0); application->priv->busy_count++; |