]> git.0d.be Git - empathy.git/commitdiff
Add to the EmpathyFTManager the new handlers.
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>
Wed, 29 Apr 2009 15:47:51 +0000 (17:47 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 1 Jun 2009 15:47:35 +0000 (17:47 +0200)
src/empathy.c

index 705e6f0e543f31eee1266e3389f5b9cdb1ce443e..1b3483fbac4bbc45a5333064ef2710e3747134e5 100644 (file)
@@ -417,17 +417,20 @@ new_ft_handler_cb (EmpathyFTFactory *factory,
                   EmpathyFTHandler *handler,
                   gpointer user_data)
 {
-       /* TODO: add to FT window */
+       EmpathyFTManager *ft_manager;
+
+       ft_manager = empathy_ft_manager_dup_singleton ();
+       empathy_ft_manager_add_handler (ft_manager, handler);
 }
 
 static void
 new_call_handler_cb (EmpathyCallFactory *factory, EmpathyCallHandler *handler,
        gboolean outgoing, gpointer user_data)
 {
-               EmpathyCallWindow *window;
+       EmpathyCallWindow *window;
 
-               window = empathy_call_window_new (handler);
-               gtk_widget_show (GTK_WIDGET (window));
+       window = empathy_call_window_new (handler);
+       gtk_widget_show (GTK_WIDGET (window));
 }
 
 int