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 | |
parent | f74a73e71831ae3f4f8abc837f58d49cb4eb4cdf (diff) | |
download | gsoc2013-evolution-46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b.tar gsoc2013-evolution-46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b.tar.gz gsoc2013-evolution-46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b.tar.bz2 gsoc2013-evolution-46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b.tar.lz gsoc2013-evolution-46139c6d5d307b7391fe40d6ecc9d3ffb3c68c1b.tar.xz 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
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 4 |
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); } |