From 2d8b087e44e17dcad96686ca6eb7cb41f02e2767 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 27 Jun 2001 20:39:33 +0000 Subject: Added a pixcache array for special pixmaps to use in the composer. 2001-06-27 Jeffrey Stedfast * e-msg-composer.c: Added a pixcache array for special pixmaps to use in the composer. (setup_ui): Set the pixcache. svn path=/trunk/; revision=10539 --- composer/ChangeLog | 6 ++++++ composer/e-msg-composer.c | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index 4e436528b3..65c6b8038b 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2001-06-27 Jeffrey Stedfast + + * e-msg-composer.c: Added a pixcache array for special pixmaps to + use in the composer. + (setup_ui): Set the pixcache. + 2001-06-21 Jeffrey Stedfast * e-msg-composer.c (menu_file_send_cb): Emit the POSTPONE signal diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index ee949ddf05..a8d940571f 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -81,6 +81,8 @@ #include "e-msg-composer-hdrs.h" #include "e-msg-composer-select-file.h" +#include "evolution-shell-component-utils.h" + #include "Editor.h" #include "listener.h" @@ -1450,7 +1452,13 @@ static BonoboUIVerb verbs [] = { BONOBO_UI_VERB ("DeleteAll", menu_edit_delete_all_cb), BONOBO_UI_VERB_END -}; +}; + +static EPixmap pixcache [] = { + E_PIXMAP ("/Toolbar/FileAttach", "buttons/add-attachment.png"), + + E_PIXMAP_END +}; static void setup_ui (EMsgComposer *composer) @@ -1468,10 +1476,14 @@ setup_ui (EMsgComposer *composer) bonobo_ui_component_add_verb_list_with_data ( composer->uic, verbs, composer); + bonobo_ui_component_freeze (composer->uic, NULL); + bonobo_ui_util_set_ui (composer->uic, EVOLUTION_DATADIR, "evolution-message-composer.xml", "evolution-message-composer"); + e_pixmaps_update (composer->uic, pixcache); + if (!camel_session_is_online (session)) { /* Move the accelerator from Send to Send Later */ bonobo_ui_component_set_prop ( @@ -1574,6 +1586,8 @@ setup_ui (EMsgComposer *composer) bonobo_ui_component_add_listener ( composer->uic, "ViewAttach", menu_view_attachments_activate_cb, composer); + + bonobo_ui_component_thaw (composer->uic, NULL); } -- cgit v1.2.3