summaryrefslogtreecommitdiff
path: root/goa-mc-plugin
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-27 18:41:49 +0000
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-07 11:16:58 +0100
commite967f59e2207021bb84880ac26ae487478cba019 (patch)
treeed530ab443b9c06537b132f768f78a91534cad36 /goa-mc-plugin
parente5995a21713cb333285f8a4bf5a612e11f6e271a (diff)
downloadempathy-e967f59e2207021bb84880ac26ae487478cba019.tar.gz
GOA plugin: use signal-emission helpers
Diffstat (limited to 'goa-mc-plugin')
-rw-r--r--goa-mc-plugin/mcp-account-manager-goa.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c
index 74949852d..fd6beb8de 100644
--- a/goa-mc-plugin/mcp-account-manager-goa.c
+++ b/goa-mc-plugin/mcp-account-manager-goa.c
@@ -202,7 +202,8 @@ object_chat_changed_cb (GoaObject *object,
DEBUG ("%s %s", name, enabled ? "enabled" : "disabled");
if (self->priv->ready)
- g_signal_emit_by_name (self, "toggled", name, enabled);
+ mcp_account_storage_emit_toggled (MCP_ACCOUNT_STORAGE (self),
+ name, enabled);
}
static void
@@ -220,7 +221,8 @@ _new_account (McpAccountManagerGoa *self,
g_object_ref (object));
if (self->priv->ready)
- g_signal_emit_by_name (self, "created", account_name);
+ mcp_account_storage_emit_created (MCP_ACCOUNT_STORAGE (self),
+ account_name);
tp_g_signal_connect_object (object, "notify::chat",
G_CALLBACK (object_chat_changed_cb), self, 0);
@@ -296,7 +298,7 @@ _account_removed_cb (GoaClient *client,
return;
if (self->priv->ready)
- g_signal_emit_by_name (self, "deleted", name);
+ mcp_account_storage_emit_deleted (MCP_ACCOUNT_STORAGE (self), name);
g_hash_table_remove (self->priv->accounts, name);