[Telepathy-commits] [telepathy-mission-control/master] Reset signal emission flag.

Alberto Mardegan alberto.mardegan at nokia.com
Mon Dec 1 23:29:18 PST 2008


Reset the flag for the emission of the connection-status-changed signal. It was
being emitted whenever a property was changing.
---
 libmcclient/mc-account.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libmcclient/mc-account.c b/libmcclient/mc-account.c
index e5a92bd..774706b 100644
--- a/libmcclient/mc-account.c
+++ b/libmcclient/mc-account.c
@@ -581,10 +581,13 @@ on_account_property_changed (TpProxy *proxy, GHashTable *props,
 
     g_hash_table_foreach (props, update_property, account);
     if (priv->props->emit_connection_status_changed)
+    {
 	g_signal_emit (account,
 		       _mc_account_signals[CONNECTION_STATUS_CHANGED], 0,
 		       priv->props->connection_status,
 		       priv->props->connection_status_reason);
+        priv->props->emit_connection_status_changed = FALSE;
+    }
 }
 
 static void
-- 
1.5.6.5




More information about the Telepathy-commits mailing list