empathy r2083 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2083 - trunk/libempathy
- Date: Tue, 6 Jan 2009 16:49:05 +0000 (UTC)
Author: xclaesse
Date: Tue Jan 6 16:49:05 2009
New Revision: 2083
URL: http://svn.gnome.org/viewvc/empathy?rev=2083&view=rev
Log:
Initialize the connection numbers when creating the object.
Modified:
trunk/libempathy/empathy-account-manager.c
Modified: trunk/libempathy/empathy-account-manager.c
==============================================================================
--- trunk/libempathy/empathy-account-manager.c (original)
+++ trunk/libempathy/empathy-account-manager.c Tue Jan 6 16:49:05 2009
@@ -327,6 +327,7 @@
G_TYPE_INSTANCE_GET_PRIVATE (manager,
EMPATHY_TYPE_ACCOUNT_MANAGER, EmpathyAccountManagerPriv);
GList *mc_accounts, *l;
+ guint initial_connection;
AccountData *data;
manager->priv = priv;
@@ -346,6 +347,14 @@
{
data = account_data_new_default (priv->mc, l->data);
+ initial_connection = mission_control_get_connection_status (priv->mc,
+ l->data, NULL);
+ if (initial_connection == TP_CONNECTION_STATUS_CONNECTED) {
+ priv->connected++;
+ } else if (initial_connection == TP_CONNECTION_STATUS_CONNECTING) {
+ priv->connecting++;
+ }
+
/* no need to g_object_ref () the account here, as mc_accounts_list ()
* already increases the refcount.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]