diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-20 18:41:58 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-20 18:41:58 +0800 |
commit | d3d12805c35d20f1834b8e6fb06b56143ae6c826 (patch) | |
tree | c2aa7934580e43d37686f12a1f0c1e1e7b505f43 /modules | |
parent | 041daf6a0e272b78577d0a61320185a8c06e4356 (diff) | |
download | gsoc2013-evolution-d3d12805c35d20f1834b8e6fb06b56143ae6c826.tar.gz gsoc2013-evolution-d3d12805c35d20f1834b8e6fb06b56143ae6c826.tar.zst gsoc2013-evolution-d3d12805c35d20f1834b8e6fb06b56143ae6c826.zip |
Bug 595687 - Message list popup menu not activated by menu key
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mail/e-mail-shell-view-private.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c index db0d3e39e4..1d25ac8e07 100644 --- a/modules/mail/e-mail-shell-view-private.c +++ b/modules/mail/e-mail-shell-view-private.c @@ -148,6 +148,17 @@ mail_shell_view_message_list_key_press_cb (EMailShellView *mail_shell_view, } static gboolean +mail_shell_view_message_list_popup_menu_cb (EShellView *shell_view) +{ + const gchar *widget_path; + + widget_path = "/mail-message-popup"; + e_shell_view_show_popup_menu (shell_view, widget_path, NULL); + + return TRUE; +} + +static gboolean mail_shell_view_message_list_right_click_cb (EShellView *shell_view, gint row, ETreePath path, @@ -409,6 +420,11 @@ e_mail_shell_view_private_constructed (EMailShellView *mail_shell_view) mail_shell_view); g_signal_connect_swapped ( + message_list->tree, "popup-menu", + G_CALLBACK (mail_shell_view_message_list_popup_menu_cb), + mail_shell_view); + + g_signal_connect_swapped ( message_list->tree, "right-click", G_CALLBACK (mail_shell_view_message_list_right_click_cb), mail_shell_view); |