gtk_application_inihit: allow no reason

We document this argument as nullable, so treat it as such.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1327
This commit is contained in:
Matthias Clasen 2018-09-13 23:28:16 -04:00
parent a4b1c6b384
commit d7a5dcba0b

View File

@ -631,7 +631,7 @@ gtk_application_impl_dbus_inhibit (GtkApplicationImpl *impl,
g_variant_new ("(s@usu)",
dbus->application_id,
window ? gtk_application_impl_dbus_get_window_system_id (dbus, window) : g_variant_new_uint32 (0),
reason,
reason ? reason : "",
flags),
G_DBUS_CALL_FLAGS_NONE,
G_MAXINT,