mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Merge branch '769778-dbus_register-contract' into 'master'
gapplication: Add postconditions on calls to GApplication.dbus_register Closes #1188 See merge request GNOME/glib!1800
This commit is contained in:
commit
975603d74f
@ -371,6 +371,7 @@ g_application_impl_attempt_primary (GApplicationImpl *impl,
|
||||
GApplicationFlags app_flags;
|
||||
GVariant *reply;
|
||||
guint32 rval;
|
||||
GError *local_error = NULL;
|
||||
|
||||
if (org_gtk_Application == NULL)
|
||||
{
|
||||
@ -430,8 +431,14 @@ g_application_impl_attempt_primary (GApplicationImpl *impl,
|
||||
if (!app_class->dbus_register (impl->app,
|
||||
impl->session_bus,
|
||||
impl->object_path,
|
||||
error))
|
||||
&local_error))
|
||||
{
|
||||
g_return_val_if_fail (local_error != NULL, FALSE);
|
||||
g_propagate_error (error, g_steal_pointer (&local_error));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
g_return_val_if_fail (local_error == NULL, FALSE);
|
||||
|
||||
if (impl->bus_name == NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user