aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-08-26 18:59:12 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-08-26 21:49:36 +0800
commit151a069b2039195a33d0e0540deec1803ddd3d23 (patch)
tree540ff4ea84a1103297cda79c724fa1b35a68aa8d /libempathy/empathy-account.c
parentf4252ca490492759fcc8942bd8605a15caa195f2 (diff)
downloadgsoc2013-empathy-151a069b2039195a33d0e0540deec1803ddd3d23.tar
gsoc2013-empathy-151a069b2039195a33d0e0540deec1803ddd3d23.tar.gz
gsoc2013-empathy-151a069b2039195a33d0e0540deec1803ddd3d23.tar.bz2
gsoc2013-empathy-151a069b2039195a33d0e0540deec1803ddd3d23.tar.lz
gsoc2013-empathy-151a069b2039195a33d0e0540deec1803ddd3d23.tar.xz
gsoc2013-empathy-151a069b2039195a33d0e0540deec1803ddd3d23.tar.zst
gsoc2013-empathy-151a069b2039195a33d0e0540deec1803ddd3d23.zip
Implement empathy_account_refresh_properties()
Diffstat (limited to 'libempathy/empathy-account.c')
-rw-r--r--libempathy/empathy-account.c25
1 files changed, 18 insertions, 7 deletions
diff --git a/libempathy/empathy-account.c b/libempathy/empathy-account.c
index 7733f3556..d8e59ea14 100644
--- a/libempathy/empathy-account.c
+++ b/libempathy/empathy-account.c
@@ -348,7 +348,7 @@ empathy_account_got_all_cb (TpProxy *proxy,
{
EmpathyAccount *account = EMPATHY_ACCOUNT (weak_object);
- DEBUG ("Got initial set of properties for %s",
+ DEBUG ("Got whole set of properties for %s",
empathy_account_get_unique_name (account));
if (error != NULL)
@@ -475,12 +475,7 @@ empathy_account_constructed (GObject *object)
empathy_account_removed_cb,
NULL, NULL, object, NULL);
- tp_cli_dbus_properties_call_get_all (priv->account, -1,
- TP_IFACE_ACCOUNT,
- empathy_account_got_all_cb,
- NULL,
- NULL,
- G_OBJECT (account));
+ empathy_account_refresh_properties (account);
}
static void empathy_account_dispose (GObject *object);
@@ -1175,3 +1170,19 @@ empathy_account_remove_finish (EmpathyAccount *account,
return TRUE;
}
+void
+empathy_account_refresh_properties (EmpathyAccount *account)
+{
+ EmpathyAccountPriv *priv;
+
+ g_return_if_fail (EMPATHY_IS_ACCOUNT (account));
+
+ priv = GET_PRIV (account);
+
+ tp_cli_dbus_properties_call_get_all (priv->account, -1,
+ TP_IFACE_ACCOUNT,
+ empathy_account_got_all_cb,
+ NULL,
+ NULL,
+ G_OBJECT (account));
+}