[libgdata] core: Only notify for GDataService::authenticated if it's actually changed
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] core: Only notify for GDataService::authenticated if it's actually changed
- Date: Mon, 20 Dec 2010 13:47:23 +0000 (UTC)
commit cd457fa88f55e3306baef639a7e6a9d292836afb
Author: Philip Withnall <philip tecnocode co uk>
Date: Thu Dec 16 16:40:44 2010 +0000
core: Only notify for GDataService::authenticated if it's actually changed
gdata/gdata-service.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 738a8f4..e131809 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -571,7 +571,6 @@ set_authentication_details (GDataService *self, const gchar *username, const gch
g_static_mutex_lock (&(priv->authentication_mutex));
g_object_freeze_notify (service);
- priv->authenticated = authenticated;
if (authenticated == TRUE) {
/* Update several properties the service holds */
@@ -590,7 +589,11 @@ set_authentication_details (GDataService *self, const gchar *username, const gch
g_object_notify (service, "password");
}
- g_object_notify (service, "authenticated");
+ if (priv->authenticated != authenticated) {
+ priv->authenticated = authenticated;
+ g_object_notify (service, "authenticated");
+ }
+
g_object_thaw_notify (service);
g_static_mutex_unlock (&(priv->authentication_mutex));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]