[gtk/gtk-3-24] gtk_application_inihit: allow no reason
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] gtk_application_inihit: allow no reason
- Date: Fri, 14 Sep 2018 03:33:00 +0000 (UTC)
commit 8fd2d461fce6da655060880fdb183a9f1e0b957c
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 0946edf35c..03aca7345c 100644
--- a/gtk/gtkapplication-dbus.c
+++ b/gtk/gtkapplication-dbus.c
@@ -630,7 +630,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]