aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-dialog.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-15 19:05:55 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-16 21:09:19 +0800
commit540ebef23ea20077e8b5d275c6114ef8bf15e05e (patch)
tree15888f0081dc2f68da1589fe1c42bfdd74839e93 /src/empathy-accounts-dialog.c
parent4fe19e7071092a3f886706ab185bf30bff776fce (diff)
downloadgsoc2013-empathy-540ebef23ea20077e8b5d275c6114ef8bf15e05e.tar
gsoc2013-empathy-540ebef23ea20077e8b5d275c6114ef8bf15e05e.tar.gz
gsoc2013-empathy-540ebef23ea20077e8b5d275c6114ef8bf15e05e.tar.bz2
gsoc2013-empathy-540ebef23ea20077e8b5d275c6114ef8bf15e05e.tar.lz
gsoc2013-empathy-540ebef23ea20077e8b5d275c6114ef8bf15e05e.tar.xz
gsoc2013-empathy-540ebef23ea20077e8b5d275c6114ef8bf15e05e.tar.zst
gsoc2013-empathy-540ebef23ea20077e8b5d275c6114ef8bf15e05e.zip
factor out display_import_dialog()
https://bugzilla.gnome.org/show_bug.cgi?id=670201
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r--src/empathy-accounts-dialog.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index fc3e53a32..70a50b33f 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -2007,15 +2007,23 @@ accounts_dialog_account_enabled_cb (TpAccountManager *manager,
enable_or_disable_account (dialog, account, TRUE);
}
-static void
-accounts_dialog_button_import_clicked_cb (GtkWidget *button,
- EmpathyAccountsDialog *dialog)
+static GtkWidget *
+display_import_dialog (EmpathyAccountsDialog *dialog)
{
GtkWidget *import_dialog;
import_dialog = empathy_import_dialog_new (GTK_WINDOW (dialog),
FALSE);
gtk_widget_show (import_dialog);
+
+ return import_dialog;
+}
+
+static void
+accounts_dialog_button_import_clicked_cb (GtkWidget *button,
+ EmpathyAccountsDialog *dialog)
+{
+ display_import_dialog (dialog);
}
static void