From c405270db9c1de428a99c5525ab7c3c7f203ea7b Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 24 Jan 2011 07:04:09 +0000 Subject: modified textview-menu-popup plug-in signal. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2821 ee746299-78ed-0310-b773-934348b2243d --- plugin/test/test.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugin/test') diff --git a/plugin/test/test.c b/plugin/test/test.c index f0e0fdf5..858f2f35 100644 --- a/plugin/test/test.c +++ b/plugin/test/test.c @@ -24,6 +24,7 @@ #include "plugin.h" #include "test.h" #include "folder.h" +#include "procmsg.h" static SylPluginInfo info = { "Test Plugin", @@ -43,7 +44,8 @@ static void summaryview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory, static void textview_menu_popup_cb(GObject *obj, GtkMenu *menu, GtkTextView *textview, const gchar *uri, - const gchar *selected_text); + const gchar *selected_text, + MsgInfo *msginfo); static void menu_selected_cb(void); @@ -162,13 +164,16 @@ static void activate_menu_cb(GtkMenuItem *menuitem, gpointer data) static void textview_menu_popup_cb(GObject *obj, GtkMenu *menu, GtkTextView *textview, const gchar *uri, - const gchar *selected_text) + const gchar *selected_text, + MsgInfo *msginfo) { GtkWidget *separator, *menuitem; g_print("test: %p: textview menu popup\n", obj); g_print("test: %p: uri: %s, text: %s\n", obj, uri ? uri : "(none)", selected_text ? selected_text : "(none)"); + g_print("test: %p: msg: %s\n", obj, + msginfo && msginfo->subject ? msginfo->subject : ""); separator = gtk_separator_menu_item_new(); gtk_menu_shell_append(GTK_MENU_SHELL(menu), separator); -- cgit v1.2.3