aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-dialog.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-03-10 19:20:01 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-10 19:20:01 +0800
commit788470113896a3d6c7ff441b0ea031568029f83c (patch)
treef0d77d836f9c4ebabccd86d35f5f05189441b209 /src/empathy-accounts-dialog.c
parente70e095faa901c8b1aa061ec61a3206178ef47f5 (diff)
downloadgsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar
gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar.gz
gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar.bz2
gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar.lz
gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar.xz
gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.tar.zst
gsoc2013-empathy-788470113896a3d6c7ff441b0ea031568029f83c.zip
Make the "Import Accounts" button insensitive if there's nothing to import.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2665
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r--src/empathy-accounts-dialog.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 892f24235..4d9456684 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1153,11 +1153,17 @@ empathy_accounts_dialog_show (GtkWindow *parent,
empathy_conf_get_bool (empathy_conf_get (),
EMPATHY_PREFS_IMPORT_ASKED, &import_asked);
- if (!import_asked) {
- empathy_conf_set_bool (empathy_conf_get (),
- EMPATHY_PREFS_IMPORT_ASKED, TRUE);
- empathy_import_dialog_show (GTK_WINDOW (dialog->window),
- FALSE);
+
+ if (empathy_import_dialog_accounts_to_import ()) {
+
+ if (!import_asked) {
+ empathy_conf_set_bool (empathy_conf_get (),
+ EMPATHY_PREFS_IMPORT_ASKED, TRUE);
+ empathy_import_dialog_show (GTK_WINDOW (dialog->window),
+ FALSE);
+ }
+ } else {
+ gtk_widget_set_sensitive (dialog->button_import, FALSE);
}
return dialog->window;