[gnome-online-accounts] kerberos: Use goa_utils_keyfile_set_boolean to set IsTemporary



commit 8c7e4a1bb570d02d99c206bcff5da7a2a430bda4
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Nov 13 15:38:43 2012 +0100

    kerberos: Use goa_utils_keyfile_set_boolean to set IsTemporary
    
    Unlike the other keys (eg., MailEnabled), IsTemporary is not the
    negation of its corresponding D-Bus property. Therefore we can not use
    goa_util_account_notify_property_cb.
    
    Fixes: https://bugzilla.gnome.org/687962

 src/goabackend/goakerberosprovider.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/goabackend/goakerberosprovider.c b/src/goabackend/goakerberosprovider.c
index ca41bed..5c095e3 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -760,12 +760,12 @@ notify_is_temporary_cb (GObject *object, GParamSpec *pspec, gpointer user_data)
   GoaAccount *account;
   gboolean is_temporary;
 
-  /* Toggle IsTemporary */
-  goa_util_account_notify_property_cb (object, pspec, "IsTemporary");
-
   account = GOA_ACCOUNT (object);
   g_object_get (account, "is-temporary", &is_temporary, NULL);
 
+  /* Toggle IsTemporary */
+  goa_utils_keyfile_set_boolean (account, "IsTemporary", is_temporary);
+
   /* Set/unset SessionId */
   if (is_temporary)
     {



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