[evolution] Bug 595687 - Message list popup menu not activated by menu key
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Bug 595687 - Message list popup menu not activated by menu key
- Date: Sun, 20 Sep 2009 10:42:38 +0000 (UTC)
commit d3d12805c35d20f1834b8e6fb06b56143ae6c826
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Sep 20 06:41:58 2009 -0400
Bug 595687 - Message list popup menu not activated by menu key
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 db0d3e3..1d25ac8 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]