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:
parent
86751c4a25
commit
8fd2d461fc
@ -630,7 +630,7 @@ gtk_application_impl_dbus_inhibit (GtkApplicationImpl *impl,
|
|||||||
g_variant_new ("(s@usu)",
|
g_variant_new ("(s@usu)",
|
||||||
dbus->application_id,
|
dbus->application_id,
|
||||||
window ? gtk_application_impl_dbus_get_window_system_id (dbus, window) : g_variant_new_uint32 (0),
|
window ? gtk_application_impl_dbus_get_window_system_id (dbus, window) : g_variant_new_uint32 (0),
|
||||||
reason,
|
reason ? reason : "",
|
||||||
flags),
|
flags),
|
||||||
G_DBUS_CALL_FLAGS_NONE,
|
G_DBUS_CALL_FLAGS_NONE,
|
||||||
G_MAXINT,
|
G_MAXINT,
|
||||||
|
Loading…
Reference in New Issue
Block a user