aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-06-28 04:39:33 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-06-28 04:39:33 +0800
commit2d8b087e44e17dcad96686ca6eb7cb41f02e2767 (patch)
treeb7baec873a79f43b152e9f0a29819c370d369290 /composer
parente3a611329e8e4eef215bc3d5d80b93a1d3543b34 (diff)
downloadgsoc2013-evolution-2d8b087e44e17dcad96686ca6eb7cb41f02e2767.tar
gsoc2013-evolution-2d8b087e44e17dcad96686ca6eb7cb41f02e2767.tar.gz
gsoc2013-evolution-2d8b087e44e17dcad96686ca6eb7cb41f02e2767.tar.bz2
gsoc2013-evolution-2d8b087e44e17dcad96686ca6eb7cb41f02e2767.tar.lz
gsoc2013-evolution-2d8b087e44e17dcad96686ca6eb7cb41f02e2767.tar.xz
gsoc2013-evolution-2d8b087e44e17dcad96686ca6eb7cb41f02e2767.tar.zst
gsoc2013-evolution-2d8b087e44e17dcad96686ca6eb7cb41f02e2767.zip
Added a pixcache array for special pixmaps to use in the composer.
2001-06-27 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog6
-rw-r--r--composer/e-msg-composer.c16
2 files changed, 21 insertions, 1 deletions
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 <fejj@ximian.com>
+
+ * 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 <fejj@ximian.com>
* 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);
}