diff options
author | Radek Doulik <rodo@ximian.com> | 2004-03-23 02:35:27 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2004-03-23 02:35:27 +0800 |
commit | 17d85681a4b8f28c5fa0ba021c96fcdd22ea27cc (patch) | |
tree | 6c42adfdb9aeceec0e08eca528fbbabe1c933c0e | |
parent | a075de474e79002f312a251d5b7580a04370d81a (diff) | |
download | gsoc2013-evolution-17d85681a4b8f28c5fa0ba021c96fcdd22ea27cc.tar.gz gsoc2013-evolution-17d85681a4b8f28c5fa0ba021c96fcdd22ea27cc.tar.zst gsoc2013-evolution-17d85681a4b8f28c5fa0ba021c96fcdd22ea27cc.zip |
do not set editor insensitive, use editable-off command instead
2004-03-22 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (disable_editor): do not set editor
insensitive, use editable-off command instead
Fixes #55049
svn path=/trunk/; revision=25148
-rw-r--r-- | composer/ChangeLog | 7 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 4943dc6cb3..e919c2ff17 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,10 @@ +2004-03-22 Radek Doulik <rodo@ximian.com> + + * e-msg-composer.c (disable_editor): do not set editor + insensitive, use editable-off command instead + + Fixes #55049 + 2004-03-22 Not Zed <NotZed@Ximian.com> * e-msg-composer-hdrs.c (post_browser_clicked_cb): exclude diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 250d5d3b63..2523182399 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -3922,7 +3922,12 @@ e_msg_composer_new_with_message (CamelMimeMessage *message) static void disable_editor (EMsgComposer *composer) { - gtk_widget_set_sensitive (composer->editor, FALSE); + CORBA_Environment ev; + + CORBA_exception_init (&ev); + GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "editable-off", &ev); + CORBA_exception_free (&ev); + gtk_widget_set_sensitive (composer->attachment_bar, FALSE); bonobo_ui_component_set_prop (composer->uic, "/menu/Edit", "sensitive", "0", NULL); |