aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2007-06-12 23:02:29 +0800
committerBastien Nocera <hadess@src.gnome.org>2007-06-12 23:02:29 +0800
commitd31f48d6dba8d4cfef36e30c9c0ef6894eb073ad (patch)
tree0ce613851aa758028d2b96f2ecf61e72a0ff42b1 /composer
parentfd3c9551a84a3a9d74dc00c0e04e7ffcc498f8a8 (diff)
downloadgsoc2013-evolution-d31f48d6dba8d4cfef36e30c9c0ef6894eb073ad.tar.gz
gsoc2013-evolution-d31f48d6dba8d4cfef36e30c9c0ef6894eb073ad.tar.zst
gsoc2013-evolution-d31f48d6dba8d4cfef36e30c9c0ef6894eb073ad.zip
Add support for the XF86Reply and XF86MailForward multimedia keys (Closes:
2007-06-12 Bastien Nocera <hadess@hadess.net> * em-folder-view.c: (emfv_list_key_press): Add support for the XF86Reply and XF86MailForward multimedia keys (Closes: #442631) 2007-06-12 Bastien Nocera <hadess@hadess.net> * e-msg-composer.c: (composer_key_pressed): Add support for the XF86Send multimedia key (Closes: #442631) 2007-06-12 Bastien Nocera <hadess@hadess.net> * configure.in: Detect the X11/XF86keysym.h header, and enable multimedia keys if available (Closes: #442631) svn path=/trunk/; revision=33668
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog6
-rw-r--r--composer/e-msg-composer.c9
2 files changed, 15 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index a6c54e6784..865e6dea5d 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-12 Bastien Nocera <hadess@hadess.net>
+
+ * e-msg-composer.c: (composer_key_pressed):
+ Add support for the XF86Send multimedia key
+ (Closes: #442631)
+
2007-06-03 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #386503 from Matthew Barnes
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index d142c08edb..ac355bbffa 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -3511,6 +3511,15 @@ composer_key_pressed (EMsgComposer *composer, GdkEventKey *event, void *user_dat
GtkWidget *widget;
EMsgComposerPrivate *p = composer->priv;
widget = e_msg_composer_hdrs_get_subject_entry (E_MSG_COMPOSER_HDRS (p->hdrs));
+
+#ifdef HAVE_XFREE
+ if (event->keyval == XF86XK_Send) {
+ g_signal_emit (GTK_OBJECT (data), signals[SEND], 0);
+ g_signal_stop_emission_by_name (composer, "key-press-event");
+ return TRUE;
+ }
+#endif /* HAVE_XFREE */
+
if (event->keyval == GDK_Escape) {
do_exit (composer);
g_signal_stop_emission_by_name (composer, "key-press-event");