]> git.0d.be Git - empathy.git/commit
Port to new tp-glib client factory
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 18 Aug 2011 09:31:10 +0000 (11:31 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 18 Aug 2011 10:15:06 +0000 (12:15 +0200)
commit9ddd25f8589ae0cd5ec8e09c4c012e4ccac6a416
tree4e4cfd5b8f801acff74edfdd5072f45d7038e00b
parent7fbf3e0c200b0a3c5086fdce0cc19afe48c429bb
Port to new tp-glib client factory

- EmpathyChannelFactory has been changed to EmpathyClientFactory and inherit
from TpAutomaticClientFactory.
- We now always use the _with_am variant of TpSimple* constructors
- We define our own factory as default.
- Replace empathy_get_account_for_connection() by tp_connection_get_account()
- The factory is passed to EmpathyTpChat and TpyCallChannel
- Use tp_simple_client_factory_ensure_account() instead of
tp_account_manager_ensure_account().
- Rely on the factory to prepare connection features.

This should ensure that all the TpProxy and TpContact objects created in
Empathy are shared and use EmpathyClientFactory.

https://bugzilla.gnome.org/show_bug.cgi?id=655799
23 files changed:
libempathy-gtk/empathy-contact-list-view.c
libempathy-gtk/empathy-log-window.c
libempathy/Makefile.am
libempathy/empathy-channel-factory.c [deleted file]
libempathy/empathy-channel-factory.h [deleted file]
libempathy/empathy-chatroom-manager.c
libempathy/empathy-client-factory.c [new file with mode: 0644]
libempathy/empathy-client-factory.h [new file with mode: 0644]
libempathy/empathy-contact.c
libempathy/empathy-ft-factory.c
libempathy/empathy-message.c
libempathy/empathy-tp-chat.c
libempathy/empathy-tp-chat.h
libempathy/empathy-utils.c
libempathy/empathy-utils.h
src/empathy-call-factory.c
src/empathy-call-handler.c
src/empathy-call-observer.c
src/empathy-chat-manager.c
src/empathy-chat-window.c
src/empathy-event-manager.c
src/empathy-streamed-media-factory.c
tests/empathy-chatroom-manager-test.c