[gnome-keyring/dbus-api] Fix methods that were accidentally implemented on wrong interfaces.



commit 910e7507122dc290240323a4dbf2fc6b412726c5
Author: Stef Walter <stef memberwebs com>
Date:   Fri Dec 11 22:10:53 2009 +0000

    Fix methods that were accidentally implemented on wrong interfaces.
    
    Session.Close(), Item.GetSecret(), Item.SetSecret().

 daemon/dbus/gkd-secret-objects.c |    4 ++--
 daemon/dbus/gkd-secret-session.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/daemon/dbus/gkd-secret-objects.c b/daemon/dbus/gkd-secret-objects.c
index c815bce..1cf6dca 100644
--- a/daemon/dbus/gkd-secret-objects.c
+++ b/daemon/dbus/gkd-secret-objects.c
@@ -367,11 +367,11 @@ item_message_handler (GkdSecretObjects *self, GP11Object *object, DBusMessage *m
 		return item_method_delete (self, object, message);
 
 	/* org.freedesktop.Secrets.Session.GetSecret() */
-	else if (dbus_message_is_method_call (message, SECRET_SERVICE_INTERFACE, "GetSecret"))
+	else if (dbus_message_is_method_call (message, SECRET_ITEM_INTERFACE, "GetSecret"))
 		return item_method_get_secret (self, object, message);
 
 	/* org.freedesktop.Secrets.Session.SetSecret() */
-	else if (dbus_message_is_method_call (message, SECRET_SERVICE_INTERFACE, "SetSecret"))
+	else if (dbus_message_is_method_call (message, SECRET_ITEM_INTERFACE, "SetSecret"))
 		return item_method_set_secret (self, object, message);
 
 	/* org.freedesktop.DBus.Properties.Get */
diff --git a/daemon/dbus/gkd-secret-session.c b/daemon/dbus/gkd-secret-session.c
index 4fe5641..5e5435d 100644
--- a/daemon/dbus/gkd-secret-session.c
+++ b/daemon/dbus/gkd-secret-session.c
@@ -588,7 +588,7 @@ gkd_secret_session_dispatch (GkdSecretSession *self, DBusMessage *message)
 		reply = session_property_handler (self, message);
 
 	/* org.freedesktop.Secrets.Session.Close() */
-	else if (dbus_message_is_method_call (message, SECRET_SERVICE_INTERFACE, "Close"))
+	else if (dbus_message_is_method_call (message, SECRET_SESSION_INTERFACE, "Close"))
 		reply = session_method_close (self, message);
 
 	else if (dbus_message_has_interface (message, DBUS_INTERFACE_INTROSPECTABLE))



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