mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-01 19:46:53 +02:00
Merge branch '2409-application-must-be-registered' into 'main'
gapplication: Guard g_application_mark_busy() Closes #2409 See merge request GNOME/glib!2111
This commit is contained in:
commit
76ecdeffd0
@ -2832,6 +2832,8 @@ g_application_quit (GApplication *application)
|
|||||||
*
|
*
|
||||||
* To cancel the busy indication, use g_application_unmark_busy().
|
* To cancel the busy indication, use g_application_unmark_busy().
|
||||||
*
|
*
|
||||||
|
* The application must be registered before calling this function.
|
||||||
|
*
|
||||||
* Since: 2.38
|
* Since: 2.38
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
@ -2840,6 +2842,7 @@ g_application_mark_busy (GApplication *application)
|
|||||||
gboolean was_busy;
|
gboolean was_busy;
|
||||||
|
|
||||||
g_return_if_fail (G_IS_APPLICATION (application));
|
g_return_if_fail (G_IS_APPLICATION (application));
|
||||||
|
g_return_if_fail (application->priv->is_registered);
|
||||||
|
|
||||||
was_busy = (application->priv->busy_count > 0);
|
was_busy = (application->priv->busy_count > 0);
|
||||||
application->priv->busy_count++;
|
application->priv->busy_count++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user