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/ChangeLog | 7 +++++++ addressbook/gui/contact-editor/e-contact-editor.c | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'addressbook') 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 + + * 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 [ 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); } -- cgit v1.2.3