From 46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 13 Jun 2002 19:08:52 +0000 Subject: Don't enable fields if the editor isn't editable and the 2002-06-13 Christopher James Lahey * 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 --- addressbook/gui/contact-editor/e-contact-editor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/gui/contact-editor') 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); } -- cgit v1.2.3