[gtk+/gtk-3-12] gtkapplication: Fix passing NULL as the window to inhibit
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-12] gtkapplication: Fix passing NULL as the window to inhibit
- Date: Sat, 12 Apr 2014 16:02:06 +0000 (UTC)
commit 51aeb39bb06eb3eafded64d5b5338c039867ac8b
Author: Bastien Nocera <hadess hadess net>
Date: Fri Apr 11 10:53:45 2014 +0200
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
gtk/gtkapplication-dbus.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkapplication-dbus.c b/gtk/gtkapplication-dbus.c
index cd145d2..b0dab70 100644
--- a/gtk/gtkapplication-dbus.c
+++ b/gtk/gtkapplication-dbus.c
@@ -339,7 +339,7 @@ gtk_application_impl_dbus_inhibit (GtkApplicationImpl *impl,
"Inhibit",
g_variant_new ("(s usu)",
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,
flags),
G_DBUS_CALL_FLAGS_NONE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]