mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 22:46:15 +01:00
Merge branch 'mcatanzaro/#3203' into 'main'
gapplication: ensure app ID is set when sending notification Closes #3203 See merge request GNOME/glib!3785
This commit is contained in:
commit
d55d40a603
@ -2981,6 +2981,9 @@ g_application_get_is_busy (GApplication *application)
|
||||
* If @notification is no longer relevant, it can be withdrawn with
|
||||
* g_application_withdraw_notification().
|
||||
*
|
||||
* It is an error to call this function if @application has no
|
||||
* application ID.
|
||||
*
|
||||
* Since: 2.40
|
||||
*/
|
||||
void
|
||||
@ -2994,6 +2997,7 @@ g_application_send_notification (GApplication *application,
|
||||
g_return_if_fail (G_IS_NOTIFICATION (notification));
|
||||
g_return_if_fail (g_application_get_is_registered (application));
|
||||
g_return_if_fail (!g_application_get_is_remote (application));
|
||||
g_return_if_fail (g_application_get_application_id (application) != NULL);
|
||||
|
||||
if (application->priv->notifications == NULL)
|
||||
application->priv->notifications = g_notification_backend_new_default (application);
|
||||
|
Loading…
Reference in New Issue
Block a user