gtkapplication: Fix passing NULL as the window to inhibit
gtk_application_inhibit() supports passing NULL, so don't blindly pass the NULL window to gtk_application_impl_dbus_get_window_system_id(). https://bugzilla.gnome.org/show_bug.cgi?id=728023
This commit is contained in:

committed by
Matthias Clasen

parent
85855da946
commit
1409d7c4bd
@ -339,7 +339,7 @@ gtk_application_impl_dbus_inhibit (GtkApplicationImpl *impl,
|
|||||||
"Inhibit",
|
"Inhibit",
|
||||||
g_variant_new ("(s@usu)",
|
g_variant_new ("(s@usu)",
|
||||||
dbus->app_id,
|
dbus->app_id,
|
||||||
gtk_application_impl_dbus_get_window_system_id (dbus, window),
|
window ? gtk_application_impl_dbus_get_window_system_id (dbus, window) : 0,
|
||||||
reason,
|
reason,
|
||||||
flags),
|
flags),
|
||||||
G_DBUS_CALL_FLAGS_NONE,
|
G_DBUS_CALL_FLAGS_NONE,
|
||||||
|
Reference in New Issue
Block a user