aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-06-14 03:08:52 +0800
committerChris Lahey <clahey@src.gnome.org>2002-06-14 03:08:52 +0800
commit46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b (patch)
tree679212e3125b987db64215759f2dd677f2390af7 /addressbook
parentf74a73e71831ae3f4f8abc837f58d49cb4eb4cdf (diff)
downloadgsoc2013-evolution-46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b.tar.gz
gsoc2013-evolution-46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b.tar.zst
gsoc2013-evolution-46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b.zip
Don't enable fields if the editor isn't editable and the
2002-06-13 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-editor.c (enable_writable_fields): Don't enable fields if the editor isn't editable and the widget_field_mappings lists this field as being desensitize for read only. svn path=/trunk/; revision=17184
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c4
2 files changed, 11 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index c4c42d36e2..50e336bc06 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+2002-06-13 Christopher James Lahey <clahey@ximian.com>
+
+ * gui/contact-editor/e-contact-editor.c (enable_writable_fields):
+ Don't enable fields if the editor isn't editable and the
+ widget_field_mappings lists this field as being desensitize for
+ read only.
+
2002-06-11 Chris Toshok <toshok@ximian.com>
[ fixes bug #17332 ]
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index a3dd431d2e..cabc1f7986 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -2434,6 +2434,10 @@ enable_writable_fields(EContactEditor *editor)
enabled = (g_hash_table_lookup (supported_hash, field) != NULL);
+ if (widget_field_mappings[i].desensitize_for_read_only && !editor->editable) {
+ enabled = FALSE;
+ }
+
enable_widget (w, enabled);
}