[gdm] Use correct types in on_seat_new and on_seat_removed



commit 25b8703a3f2b5e68e82bdd58df4f36b21c0eb0f6
Author: Dave Airlie <airlied gmail com>
Date:   Thu Aug 30 15:32:09 2012 -0400

    Use correct types in on_seat_new and on_seat_removed
    
    The message is actually a tuple of a string + object path,
    not just a single string.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682758

 daemon/gdm-local-display-factory.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c
index 571c9fd..a37f470 100644
--- a/daemon/gdm-local-display-factory.c
+++ b/daemon/gdm-local-display-factory.c
@@ -451,7 +451,7 @@ on_seat_new (GDBusConnection *connection,
 {
         const char *seat;
 
-        g_variant_get (parameters, "(&s)", &seat);
+        g_variant_get (parameters, "(&s&o)", &seat, NULL);
         create_display (GDM_LOCAL_DISPLAY_FACTORY (user_data), seat, FALSE);
 }
 
@@ -466,7 +466,7 @@ on_seat_removed (GDBusConnection *connection,
 {
         const char *seat;
 
-        g_variant_get (parameters, "(&s)", &seat);
+        g_variant_get (parameters, "(&s&o)", &seat, NULL);
         delete_display (GDM_LOCAL_DISPLAY_FACTORY (user_data), seat);
 }
 



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