]> git.0d.be Git - empathy.git/commitdiff
Implement empathy_account_refresh_properties()
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 26 Aug 2009 10:59:12 +0000 (12:59 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 26 Aug 2009 13:49:36 +0000 (15:49 +0200)
libempathy/empathy-account.c
libempathy/empathy-account.h

index 7733f3556d01a453490a2de524d8da835b2a4650..d8e59ea149987f4871b342b6cf1bbdcd1d92f223 100644 (file)
@@ -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));
+}
index f88ac43e4ca68d1d80db265a0668823e9074fea9..d327de60d3eeac0253f6543bb2aeb98a8a425571 100644 (file)
@@ -103,6 +103,8 @@ void empathy_account_request_presence (EmpathyAccount *account,
 
 const GHashTable *empathy_account_get_parameters (EmpathyAccount *account);
 
+void empathy_account_refresh_properties (EmpathyAccount *account);
+
 
 G_END_DECLS