[nautilus] Specify the expected variant type instead of using G_VARIANT_TYPE_TUPLE.



commit 345e520752b627bf0d085ab6f5d480476b1dba89
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun May 30 21:17:42 2010 +0200

    Specify the expected variant type instead of using G_VARIANT_TYPE_TUPLE.
    
    Thanks to Christian Persch.

 libnautilus-private/nautilus-file-utilities.c |    2 +-
 src/nautilus-application.c                    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-utilities.c b/libnautilus-private/nautilus-file-utilities.c
index f246969..756d6d3 100644
--- a/libnautilus-private/nautilus-file-utilities.c
+++ b/libnautilus-private/nautilus-file-utilities.c
@@ -1068,7 +1068,7 @@ nautilus_inhibit_power_manager (const char *message)
 							     (guint) 0,
 							     message,
 							     (guint) (INHIBIT_LOGOUT | INHIBIT_SUSPEND)),
-					      G_VARIANT_TYPE_TUPLE,
+					      G_VARIANT_TYPE ("(u)"),
 					      G_DBUS_CALL_FLAGS_NO_AUTO_START,
 					      -1,
 					      NULL,
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index db93ba4..06d8509 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -652,7 +652,7 @@ do_initialize_consolekit (NautilusApplication *application)
 				CK_INTERFACE ".Manager",
 				"GetCurrentSession",
 				g_variant_new ("()"),
-				G_VARIANT_TYPE_TUPLE,
+				G_VARIANT_TYPE ("(o)"),
 				G_DBUS_CALL_FLAGS_NONE,
 				-1,
 				NULL,



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