diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2008-10-17 20:45:58 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-17 20:45:58 +0800 |
commit | ff25dd40df695988f027d841a096a20199662c78 (patch) | |
tree | 6a611d5a158abe66df1d603606ba3fd837844715 /src/empathy-accounts-dialog.c | |
parent | e81329115e57fd14600e0638a8d6db45df1b2e74 (diff) | |
download | gsoc2013-empathy-ff25dd40df695988f027d841a096a20199662c78.tar gsoc2013-empathy-ff25dd40df695988f027d841a096a20199662c78.tar.gz gsoc2013-empathy-ff25dd40df695988f027d841a096a20199662c78.tar.bz2 gsoc2013-empathy-ff25dd40df695988f027d841a096a20199662c78.tar.lz gsoc2013-empathy-ff25dd40df695988f027d841a096a20199662c78.tar.xz gsoc2013-empathy-ff25dd40df695988f027d841a096a20199662c78.tar.zst gsoc2013-empathy-ff25dd40df695988f027d841a096a20199662c78.zip |
Added an "Import accounts" button to the accounts dialog. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1597
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r-- | src/empathy-accounts-dialog.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index a9666f575..d3d0ff86c 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -46,6 +46,7 @@ #include <libempathy-gtk/empathy-account-widget-sip.h> #include "empathy-accounts-dialog.h" +#include "empathy-import-dialog.h" #define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT #include <libempathy/empathy-debug.h> @@ -65,6 +66,7 @@ typedef struct { GtkWidget *button_add; GtkWidget *button_remove; + GtkWidget *button_import; GtkWidget *frame_new_account; GtkWidget *combobox_profile; @@ -144,6 +146,8 @@ static void accounts_dialog_button_help_clicked_cb (GtkWidget EmpathyAccountsDialog *dialog); static void accounts_dialog_button_remove_clicked_cb (GtkWidget *button, EmpathyAccountsDialog *dialog); +static void accounts_dialog_button_import_clicked_cb (GtkWidget *button, + EmpathyAccountsDialog *dialog); static void accounts_dialog_response_cb (GtkWidget *widget, gint response, EmpathyAccountsDialog *dialog); @@ -999,6 +1003,13 @@ accounts_dialog_button_remove_clicked_cb (GtkWidget *button, } static void +accounts_dialog_button_import_clicked_cb (GtkWidget *button, + EmpathyAccountsDialog *dialog) +{ + empathy_import_dialog_show (GTK_WINDOW (dialog->window)); +} + +static void accounts_dialog_response_cb (GtkWidget *widget, gint response, EmpathyAccountsDialog *dialog) @@ -1090,6 +1101,7 @@ empathy_accounts_dialog_show (GtkWindow *parent, "label_name", &dialog->label_name, "button_add", &dialog->button_add, "button_remove", &dialog->button_remove, + "button_import", &dialog->button_import, NULL); g_free (filename); @@ -1101,6 +1113,7 @@ empathy_accounts_dialog_show (GtkWindow *parent, "button_back", "clicked", accounts_dialog_button_back_clicked_cb, "button_add", "clicked", accounts_dialog_button_add_clicked_cb, "button_remove", "clicked", accounts_dialog_button_remove_clicked_cb, + "button_import", "clicked", accounts_dialog_button_import_clicked_cb, "button_help", "clicked", accounts_dialog_button_help_clicked_cb, NULL); |