diff options
author | Jonny Lamb <jonnylamb@gnome.org> | 2011-05-12 23:24:43 +0800 |
---|---|---|
committer | Jonny Lamb <jonnylamb@gnome.org> | 2011-05-12 23:24:43 +0800 |
commit | 7412b7e93ee7106dc139365fb391e2f613c294ef (patch) | |
tree | ffde35e4e10ae90d7051ecf9b05f68b3c08d3b13 | |
parent | 7740933e258c4afe279d08599232e057e1c2d338 (diff) | |
download | gsoc2013-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.c | 13 |
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)); } |