diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-11 21:53:50 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-05-25 15:22:41 +0800 |
commit | 0dd8e6cbd7b903d2ce8b56995e4b4ac6ed042f2c (patch) | |
tree | 22d694d8dce6c66151362c1301e3fa9a6291ff9a /src/empathy-event-manager.c | |
parent | 4e39c2c5adac55793143c110159fa40cc51f324c (diff) | |
download | gsoc2013-empathy-0dd8e6cbd7b903d2ce8b56995e4b4ac6ed042f2c.tar gsoc2013-empathy-0dd8e6cbd7b903d2ce8b56995e4b4ac6ed042f2c.tar.gz gsoc2013-empathy-0dd8e6cbd7b903d2ce8b56995e4b4ac6ed042f2c.tar.bz2 gsoc2013-empathy-0dd8e6cbd7b903d2ce8b56995e4b4ac6ed042f2c.tar.lz gsoc2013-empathy-0dd8e6cbd7b903d2ce8b56995e4b4ac6ed042f2c.tar.xz gsoc2013-empathy-0dd8e6cbd7b903d2ce8b56995e4b4ac6ed042f2c.tar.zst gsoc2013-empathy-0dd8e6cbd7b903d2ce8b56995e4b4ac6ed042f2c.zip |
EmpathyTpChat: inherit from TpTextChannel (#650554)
Diffstat (limited to 'src/empathy-event-manager.c')
-rw-r--r-- | src/empathy-event-manager.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index 770b22b43..baa06dc27 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -928,10 +928,9 @@ approve_channels (TpSimpleApprover *approver, if (TP_IS_TEXT_CHANNEL (channel)) { - EmpathyTpChat *tp_chat; + EmpathyTpChat *tp_chat = EMPATHY_TP_CHAT (channel); - tp_chat = empathy_tp_chat_new (account, channel); - approval->handler_instance = G_OBJECT (tp_chat); + approval->handler_instance = g_object_ref (tp_chat); if (tp_proxy_has_interface (channel, TP_IFACE_CHANNEL_INTERFACE_GROUP)) { |