aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2004-05-20 08:47:35 +0800
committerHans Petter <hansp@src.gnome.org>2004-05-20 08:47:35 +0800
commit5bc91a74fecf9f6eecff4281408743ab694e26df (patch)
treed654438e493aae827f5475352ffe2778a8431ac0 /addressbook/gui
parent86fe9d7abfffa5eaaeb26c7049ffa52e2e0fe97a (diff)
downloadgsoc2013-evolution-5bc91a74fecf9f6eecff4281408743ab694e26df.tar.gz
gsoc2013-evolution-5bc91a74fecf9f6eecff4281408743ab694e26df.tar.zst
gsoc2013-evolution-5bc91a74fecf9f6eecff4281408743ab694e26df.zip
Check if individual email fields are supported.
2004-05-19 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (sensitize_email): Check if individual email fields are supported. svn path=/trunk/; revision=25998
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 7d2df033fa..1e9b3adb99 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -975,6 +975,10 @@ sensitize_email (EContactEditor *editor)
if (!editor->target_editable)
enabled = FALSE;
+ if (E_CONTACT_FIRST_EMAIL_ID + i - 1 <= E_CONTACT_LAST_EMAIL_ID &&
+ !is_field_supported (editor, E_CONTACT_FIRST_EMAIL_ID + i - 1))
+ enabled = FALSE;
+
sensitize_email_record (editor, i, enabled);
}
}