From e861630f113e4dcff45bbc2684310c793838f384 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 21 Dec 2010 21:11:10 +0100 Subject: Bug #567879 - Add View >> Gallery Option In Email Composer --- composer/e-composer-actions.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'composer/e-composer-actions.c') diff --git a/composer/e-composer-actions.c b/composer/e-composer-actions.c index 3b2aabfefc..1f1cb44a7c 100644 --- a/composer/e-composer-actions.c +++ b/composer/e-composer-actions.c @@ -353,6 +353,14 @@ static GtkToggleActionEntry toggle_entries[] = { G_CALLBACK (action_pgp_sign_cb), FALSE }, + { "picture-gallery", + "emblem-photos", + N_("_Picture Gallery"), + NULL, + N_("Show a collection of pictures that you can drag to your message"), + NULL, /* no callback */ + FALSE }, + { "prioritize-message", NULL, N_("_Prioritize Message"), @@ -460,9 +468,17 @@ e_composer_actions_init (EMsgComposer *composer) g_object_set ( ACTION (ATTACH), "short-label", _("Attach"), NULL); + g_object_set ( + ACTION (PICTURE_GALLERY), "is-important", TRUE, NULL); + g_object_set ( ACTION (SAVE_DRAFT), "short-label", _("Save Draft"), NULL); + g_object_bind_property ( + composer, "html-mode", + ACTION (PICTURE_GALLERY), "sensitive", + G_BINDING_SYNC_CREATE); + g_object_bind_property ( web_view, "editable", GTKHTML_EDITOR_ACTION_EDIT_MENU (editor), "sensitive", -- cgit v1.2.3