[gnome-online-accounts] Don't use "id" in the error messages from GetPassword



commit 72c4d712f3a3f2f041a40fcb99c05429651f0b37
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Jan 29 16:47:33 2013 +0100

    Don't use "id" in the error messages from GetPassword
    
    The "id" argument is unused in the Exchage, Google and ownCloud
    providers.

 src/goabackend/goaexchangeprovider.c |    5 ++---
 src/goabackend/goagoogleprovider.c   |    5 ++---
 src/goabackend/goaowncloudprovider.c |    5 ++---
 3 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/src/goabackend/goaexchangeprovider.c b/src/goabackend/goaexchangeprovider.c
index f287326..0f08e6c 100644
--- a/src/goabackend/goaexchangeprovider.c
+++ b/src/goabackend/goaexchangeprovider.c
@@ -977,7 +977,7 @@ goa_exchange_provider_class_init (GoaExchangeProviderClass *klass)
 static gboolean
 on_handle_get_password (GoaPasswordBased      *interface,
                         GDBusMethodInvocation *invocation,
-                        const gchar           *id,
+                        const gchar           *id, /* unused */
                         gpointer               user_data)
 {
   GoaObject *object;
@@ -1012,8 +1012,7 @@ on_handle_get_password (GoaPasswordBased      *interface,
       g_dbus_method_invocation_return_error (invocation,
                                              GOA_ERROR,
                                              GOA_ERROR_FAILED, /* TODO: more specific */
-                                             _("Did not find password with username `%s' in credentials"),
-                                             id);
+                                             _("Did not find password in credentials"));
       goto out;
     }
 
diff --git a/src/goabackend/goagoogleprovider.c b/src/goabackend/goagoogleprovider.c
index 90f3498..d6f7809 100644
--- a/src/goabackend/goagoogleprovider.c
+++ b/src/goabackend/goagoogleprovider.c
@@ -750,7 +750,7 @@ goa_google_provider_class_init (GoaGoogleProviderClass *klass)
 static gboolean
 on_handle_get_password (GoaPasswordBased      *interface,
                         GDBusMethodInvocation *invocation,
-                        const gchar           *id,
+                        const gchar           *id, /* unused */
                         gpointer               user_data)
 {
   GoaObject *object;
@@ -785,8 +785,7 @@ on_handle_get_password (GoaPasswordBased      *interface,
       g_dbus_method_invocation_return_error (invocation,
                                              GOA_ERROR,
                                              GOA_ERROR_FAILED, /* TODO: more specific */
-                                             _("Did not find password with username `%s' in credentials"),
-                                             id);
+                                             _("Did not find password in credentials"));
       goto out;
     }
 
diff --git a/src/goabackend/goaowncloudprovider.c b/src/goabackend/goaowncloudprovider.c
index 4fe5a85..a5255ee 100644
--- a/src/goabackend/goaowncloudprovider.c
+++ b/src/goabackend/goaowncloudprovider.c
@@ -1049,7 +1049,7 @@ goa_owncloud_provider_class_init (GoaOwncloudProviderClass *klass)
 static gboolean
 on_handle_get_password (GoaPasswordBased      *interface,
                         GDBusMethodInvocation *invocation,
-                        const gchar           *id,
+                        const gchar           *id, /* unused */
                         gpointer               user_data)
 {
   GoaObject *object;
@@ -1084,8 +1084,7 @@ on_handle_get_password (GoaPasswordBased      *interface,
       g_dbus_method_invocation_return_error (invocation,
                                              GOA_ERROR,
                                              GOA_ERROR_FAILED, /* TODO: more specific */
-                                             _("Did not find password with username `%s' in credentials"),
-                                             id);
+                                             _("Did not find password in credentials"));
       goto out;
     }
 



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