diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-05-14 19:04:37 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:49:56 +0800 |
commit | 63369cbc268ec537649056a04ca334882543fff9 (patch) | |
tree | 106d7f939c74eae48f34e3c55ec36a2659694cb3 /src/empathy.c | |
parent | bea3e3b51d5bf55d07b719cd20d9014c158ea7f4 (diff) | |
download | gsoc2013-empathy-63369cbc268ec537649056a04ca334882543fff9.tar gsoc2013-empathy-63369cbc268ec537649056a04ca334882543fff9.tar.gz gsoc2013-empathy-63369cbc268ec537649056a04ca334882543fff9.tar.bz2 gsoc2013-empathy-63369cbc268ec537649056a04ca334882543fff9.tar.lz gsoc2013-empathy-63369cbc268ec537649056a04ca334882543fff9.tar.xz gsoc2013-empathy-63369cbc268ec537649056a04ca334882543fff9.tar.zst gsoc2013-empathy-63369cbc268ec537649056a04ca334882543fff9.zip |
Remove the singleton logic from the manager
Don't use a singleton logic for the FT Manager, but let the manager
itself hold the references according to the state of the toplevel
window.
Diffstat (limited to 'src/empathy.c')
-rw-r--r-- | src/empathy.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/empathy.c b/src/empathy.c index d3cc12ca9..ffdb97949 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -417,10 +417,7 @@ new_ft_handler_cb (EmpathyFTFactory *factory, EmpathyFTHandler *handler, gpointer user_data) { - EmpathyFTManager *ft_manager; - - ft_manager = empathy_ft_manager_dup_singleton (); - empathy_ft_manager_add_handler (ft_manager, handler); + empathy_ft_manager_add_handler (handler); g_object_unref (handler); } @@ -446,7 +443,6 @@ main (int argc, char *argv[]) EmpathyDispatcher *dispatcher; EmpathyLogManager *log_manager; EmpathyChatroomManager *chatroom_manager; - EmpathyFTManager *ft_manager; EmpathyCallFactory *call_factory; EmpathyFTFactory *ft_factory; GtkWidget *window; @@ -596,8 +592,6 @@ main (int argc, char *argv[]) chatroom_manager = empathy_chatroom_manager_dup_singleton (NULL); empathy_chatroom_manager_observe (chatroom_manager, dispatcher); - ft_manager = empathy_ft_manager_dup_singleton (); - notify_init (_(PACKAGE_NAME)); /* Create the call factory */ call_factory = empathy_call_factory_initialise (); |