aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-07-09 15:58:55 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-07-09 15:58:55 +0800
commite06c2e80e778e0077cf8bf1e71d7bcca06cdbff8 (patch)
tree79b2ce1d4855a6abbae310f8f0d5c844167c39c4 /composer
parent7103db294cb63cc4af283e11f19166fbcf169894 (diff)
downloadgsoc2013-evolution-e06c2e80e778e0077cf8bf1e71d7bcca06cdbff8.tar.gz
gsoc2013-evolution-e06c2e80e778e0077cf8bf1e71d7bcca06cdbff8.tar.zst
gsoc2013-evolution-e06c2e80e778e0077cf8bf1e71d7bcca06cdbff8.zip
** Fix for bug #206592
2008-07-09 Milan Crha <mcrha@redhat.com> ** Fix for bug #206592 * evolution-composer.ui: * e-composer-actions.h: * e-composer-actions.c: (action_new_message_cb), (entries): Action to invoke New Message window from the composer itself. svn path=/trunk/; revision=35733
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog9
-rw-r--r--composer/e-composer-actions.c15
-rw-r--r--composer/e-composer-actions.h2
-rw-r--r--composer/evolution-composer.ui2
4 files changed, 28 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index d990d1bf70..1eeb5bb7e2 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,12 @@
+2008-07-09 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #206592
+
+ * evolution-composer.ui:
+ * e-composer-actions.h:
+ * e-composer-actions.c: (action_new_message_cb), (entries):
+ Action to invoke New Message window from the composer itself.
+
2008-06-30 Matthew Barnes <mbarnes@redhat.com>
* e-composer-post-header.c (composer_post_header_finalize):
diff --git a/composer/e-composer-actions.c b/composer/e-composer-actions.c
index 0d86e64d48..07ec555452 100644
--- a/composer/e-composer-actions.c
+++ b/composer/e-composer-actions.c
@@ -25,6 +25,7 @@
#include <e-util/e-error.h>
#include <mail/em-event.h>
#include <mail/em-format-html-print.h>
+#include <mail/em-composer-utils.h>
#include "misc/e-charset-picker.h"
@@ -340,6 +341,13 @@ action_send_options_cb (GtkAction *action,
}
static void
+action_new_message_cb (GtkAction *action,
+ EMsgComposer *composer)
+{
+ em_utils_compose_new_message (NULL);
+}
+
+static void
action_smime_encrypt_cb (GtkToggleAction *action,
EMsgComposer *composer)
{
@@ -522,6 +530,13 @@ static GtkActionEntry entries[] = {
N_("Insert Send options"),
G_CALLBACK (action_send_options_cb) },
+ { "new-message",
+ "mail-message-new",
+ N_("New _Message"),
+ "<Control>n",
+ N_("Open New Message window"),
+ G_CALLBACK (action_new_message_cb) },
+
/* Menus */
{ "charset-menu",
diff --git a/composer/e-composer-actions.h b/composer/e-composer-actions.h
index ccbaa37383..9780fd8dc9 100644
--- a/composer/e-composer-actions.h
+++ b/composer/e-composer-actions.h
@@ -51,6 +51,8 @@
E_COMPOSER_ACTION ((composer), "send")
#define E_COMPOSER_ACTION_SEND_OPTIONS(composer) \
E_COMPOSER_ACTION ((composer), "send-options")
+#define E_COMPOSER_ACTION_NEW_MESSAGE(composer) \
+ E_COMPOSER_ACTION ((composer), "new-message")
#define E_COMPOSER_ACTION_SMIME_ENCRYPT(composer) \
E_COMPOSER_ACTION ((composer), "smime-encrypt")
#define E_COMPOSER_ACTION_SMIME_SIGN(composer) \
diff --git a/composer/evolution-composer.ui b/composer/evolution-composer.ui
index feb9cdfa9b..7413770af9 100644
--- a/composer/evolution-composer.ui
+++ b/composer/evolution-composer.ui
@@ -4,6 +4,8 @@
<menu action='file-menu'>
<menuitem action='send'/>
<separator/>
+ <menuitem action='new-message'/>
+ <separator/>
<menuitem action='save'/>
<menuitem action='save-as'/>
<menuitem action='save-draft'/>