aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-03-26 05:53:08 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-03-26 05:53:08 +0000
commit190c671cd205f52876f464699f594274c832874b (patch)
treeae09c6c3cabf90305f560ce39a6c39efcc2706e3
parentc0e22aef9eecfddde486a62a4d366edd45d86d00 (diff)
src/summaryview.c: enabled menu popup with Menu key.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3030 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog4
-rw-r--r--src/summaryview.c9
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d5a59af6..81b84300 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2012-03-26
+ * src/summaryview.c: enabled menu popup with Menu key.
+
+2012-03-26
+
* src/menu.[ch]
src/folderview.c: enabled menu popup with Menu key.
diff --git a/src/summaryview.c b/src/summaryview.c
index d6499ee2..f8161f42 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2011 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2012 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -6072,6 +6072,13 @@ static gboolean summary_key_pressed(GtkWidget *widget, GdkEventKey *event,
BREAK_ON_MODIFIER_KEY();
summary_delete(summaryview);
return TRUE;
+ case GDK_Menu:
+ syl_plugin_signal_emit("summaryview-menu-popup",
+ summaryview->popupfactory);
+ gtk_menu_popup(GTK_MENU(summaryview->popupmenu), NULL, NULL,
+ menu_widget_position, summaryview->treeview,
+ 0, GDK_CURRENT_TIME);
+ return TRUE;
default:
break;
}