diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-06-14 03:08:52 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-06-14 03:08:52 +0800 |
commit | 46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b (patch) | |
tree | 679212e3125b987db64215759f2dd677f2390af7 /addressbook/gui | |
parent | f74a73e71831ae3f4f8abc837f58d49cb4eb4cdf (diff) | |
download | gsoc2013-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/gui')
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 4 |
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 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); } |