aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index b9993a8f5..5cbf877e5 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -58,6 +58,7 @@
#include "empathy-new-chatroom-dialog.h"
#include "empathy-chatrooms-window.h"
#include "empathy-event-manager.h"
+#include "empathy-ft-manager.h"
#define DEBUG_FLAG EMPATHY_DEBUG_OTHER
#include <libempathy/empathy-debug.h>
@@ -683,6 +684,20 @@ main_window_chat_add_contact_cb (GtkAction *action,
}
static void
+main_window_chat_show_ft_manager (GtkAction *action,
+ EmpathyMainWindow *window)
+{
+ EmpathyFTManager *manager;
+ GtkWidget *dialog;
+
+ manager = empathy_ft_manager_dup_singleton ();
+ dialog = empathy_ft_manager_get_dialog (manager);
+
+ gtk_window_present (GTK_WINDOW (dialog));
+ g_object_unref (manager);
+}
+
+static void
main_window_chat_show_offline_cb (GtkToggleAction *action,
EmpathyMainWindow *window)
{
@@ -1122,6 +1137,7 @@ empathy_main_window_show (void)
"room_join_favorites", "activate", main_window_room_join_favorites_cb,
"room_manage_favorites", "activate", main_window_room_manage_favorites_cb,
"chat_add_contact", "activate", main_window_chat_add_contact_cb,
+ "chat_show_ft_manager", "activate", main_window_chat_show_ft_manager,
"chat_show_offline", "toggled", main_window_chat_show_offline_cb,
"edit", "activate", main_window_edit_cb,
"edit_accounts", "activate", main_window_edit_accounts_cb,