[empathy: 27/148] Add to the EmpathyFTManager the new handlers.



commit ab87573e65ed5f09573398e11fa286585fb13846
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date:   Wed Apr 29 17:47:51 2009 +0200

    Add to the EmpathyFTManager the new handlers.
---
 src/empathy.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/empathy.c b/src/empathy.c
index 705e6f0..1b3483f 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]