aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
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
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')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 48f41d672e..63b9ef4885 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
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.
+
+2004-05-19 Hans Petter Jansson <hpj@ximian.com>
+
* gui/contact-editor/e-contact-editor.c (extract_simple_field):
Remove debug output.
(real_save_contact): Separate out actual save logic from
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);
}
}