[empathy: 3/6] main-window: call the remote UndoClosedTab



commit 2d5e4f0a14794617d5fe385d4fcea86e4120edf5
Author: Jonny Lamb <jonnylamb gnome org>
Date:   Mon May 16 15:13:13 2011 +0100

    main-window: call the remote UndoClosedTab
    
    It will work, unlike this one.
    
    Signed-off-by: Jonny Lamb <jonnylamb gnome org>

 src/empathy-main-window.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 0ac08c8..2271609 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1226,14 +1226,10 @@ main_window_key_press_event_cb  (GtkWidget   *window,
 				 GdkEventKey *event,
 				 gpointer     user_data)
 {
-	EmpathyChatManager *chat_manager;
-
 	if (event->keyval == GDK_KEY_T
 	    && event->state & GDK_SHIFT_MASK
 	    && event->state & GDK_CONTROL_MASK) {
-		chat_manager = empathy_chat_manager_dup_singleton ();
-		empathy_chat_manager_undo_closed_chat (chat_manager);
-		g_object_unref (chat_manager);
+		empathy_chat_manager_call_undo_closed_chat ();
 	}
 	return FALSE;
 }



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