aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-10-17 20:45:44 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-10-17 20:45:44 +0800
commit87177241f400d11ae30da75ad134983047f9be5a (patch)
tree87fd768ed63551c1108589b132b96d6ffecbd38c /src/empathy-main-window.c
parent00b13b48a3771ba08eb6453a7a6e1c55f0de2a61 (diff)
downloadgsoc2013-empathy-87177241f400d11ae30da75ad134983047f9be5a.tar
gsoc2013-empathy-87177241f400d11ae30da75ad134983047f9be5a.tar.gz
gsoc2013-empathy-87177241f400d11ae30da75ad134983047f9be5a.tar.bz2
gsoc2013-empathy-87177241f400d11ae30da75ad134983047f9be5a.tar.lz
gsoc2013-empathy-87177241f400d11ae30da75ad134983047f9be5a.tar.xz
gsoc2013-empathy-87177241f400d11ae30da75ad134983047f9be5a.tar.zst
gsoc2013-empathy-87177241f400d11ae30da75ad134983047f9be5a.zip
Added an account importer dialog. Fixes bug #541060 (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1593
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index c5437385f..ee4358687 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -56,6 +56,7 @@
#include "empathy-new-chatroom-dialog.h"
#include "empathy-chatrooms-window.h"
#include "empathy-event-manager.h"
+#include "empathy-import-dialog.h"
#define DEBUG_FLAG EMPATHY_DEBUG_OTHER
#include <libempathy/empathy-debug.h>
@@ -133,6 +134,8 @@ static void main_window_room_manage_favorites_cb (GtkWidget
EmpathyMainWindow *window);
static void main_window_chat_add_contact_cb (GtkWidget *widget,
EmpathyMainWindow *window);
+static void main_window_chat_import_cb (GtkWidget *widget,
+ EmpathyMainWindow *window);
static void main_window_chat_show_offline_cb (GtkCheckMenuItem *item,
EmpathyMainWindow *window);
static gboolean main_window_edit_button_press_event_cb (GtkWidget *widget,
@@ -421,6 +424,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_import", "activate", main_window_chat_import_cb,
"chat_show_offline", "toggled", main_window_chat_show_offline_cb,
"edit", "button-press-event", main_window_edit_button_press_event_cb,
"edit_accounts", "activate", main_window_edit_accounts_cb,
@@ -800,6 +804,13 @@ main_window_chat_add_contact_cb (GtkWidget *widget,
}
static void
+main_window_chat_import_cb (GtkWidget *widget,
+ EmpathyMainWindow *window)
+{
+ empathy_import_dialog_show (GTK_WINDOW (window->window));
+}
+
+static void
main_window_chat_show_offline_cb (GtkCheckMenuItem *item,
EmpathyMainWindow *window)
{