diff options
author | Bastien Nocera <hadess@hadess.net> | 2007-06-12 23:02:29 +0800 |
---|---|---|
committer | Bastien Nocera <hadess@src.gnome.org> | 2007-06-12 23:02:29 +0800 |
commit | d31f48d6dba8d4cfef36e30c9c0ef6894eb073ad (patch) | |
tree | 0ce613851aa758028d2b96f2ecf61e72a0ff42b1 /composer/e-msg-composer.c | |
parent | fd3c9551a84a3a9d74dc00c0e04e7ffcc498f8a8 (diff) | |
download | gsoc2013-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/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 9 |
1 files changed, 9 insertions, 0 deletions
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"); |