[gtk] gtk_application_inihit: allow no reason



commit d7a5dcba0b06a51781b4c7207f47f2155646dbc0
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Sep 13 23:28:16 2018 -0400

    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

 gtk/gtkapplication-dbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkapplication-dbus.c b/gtk/gtkapplication-dbus.c
index a1f6eb0c3a..409f5f570f 100644
--- a/gtk/gtkapplication-dbus.c
+++ b/gtk/gtkapplication-dbus.c
@@ -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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]