diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-01-24 07:04:09 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-01-24 07:04:09 +0000 |
commit | c405270db9c1de428a99c5525ab7c3c7f203ea7b (patch) | |
tree | 00d9a1a9b399e4aaa1b0a0ac783b9552d463fe0d /plugin/test | |
parent | b1ce6e7edcbc5d79a4f2c526e4cf05b8230050af (diff) |
modified textview-menu-popup plug-in signal.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2821 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'plugin/test')
-rw-r--r-- | plugin/test/test.c | 9 |
1 files changed, 7 insertions, 2 deletions
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); |