aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2011-05-12 23:24:43 +0800
committerJonny Lamb <jonnylamb@gnome.org>2011-05-12 23:24:43 +0800
commit7412b7e93ee7106dc139365fb391e2f613c294ef (patch)
treeffde35e4e10ae90d7051ecf9b05f68b3c08d3b13
parent7740933e258c4afe279d08599232e057e1c2d338 (diff)
downloadgsoc2013-empathy-7412b7e93ee7106dc139365fb391e2f613c294ef.tar
gsoc2013-empathy-7412b7e93ee7106dc139365fb391e2f613c294ef.tar.gz
gsoc2013-empathy-7412b7e93ee7106dc139365fb391e2f613c294ef.tar.bz2
gsoc2013-empathy-7412b7e93ee7106dc139365fb391e2f613c294ef.tar.lz
gsoc2013-empathy-7412b7e93ee7106dc139365fb391e2f613c294ef.tar.xz
gsoc2013-empathy-7412b7e93ee7106dc139365fb391e2f613c294ef.tar.zst
gsoc2013-empathy-7412b7e93ee7106dc139365fb391e2f613c294ef.zip
tp-chat: add pending-message-removed signal
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
-rw-r--r--libempathy/empathy-tp-chat.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 3d22bc17e..c83db01a1 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -84,6 +84,7 @@ enum {
CHAT_STATE_CHANGED,
PROPERTY_CHANGED,
DESTROY,
+ PENDING_MESSAGE_REMOVED,
LAST_SIGNAL
};
@@ -480,6 +481,8 @@ pending_message_removed_cb (TpTextChannel *channel,
g_object_unref (m->data);
g_queue_delete_link (priv->pending_messages_queue, m);
+
+ g_signal_emit (chat, signals[PENDING_MESSAGE_REMOVED], 0);
}
static void
@@ -1663,6 +1666,16 @@ empathy_tp_chat_class_init (EmpathyTpChatClass *klass)
G_TYPE_NONE,
0);
+ signals[PENDING_MESSAGE_REMOVED] =
+ g_signal_new ("pending-message-removed",
+ G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST,
+ 0,
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE,
+ 0);
+
g_type_class_add_private (object_class, sizeof (EmpathyTpChatPriv));
}