Revision 2821 plugin/test/test.c

View differences:

test.c
24 24
#include "plugin.h"
25 25
#include "test.h"
26 26
#include "folder.h"
27
#include "procmsg.h"
27 28

  
28 29
static SylPluginInfo info = {
29 30
	"Test Plugin",
......
43 44
static void textview_menu_popup_cb(GObject *obj, GtkMenu *menu,
44 45
				   GtkTextView *textview,
45 46
				   const gchar *uri,
46
				   const gchar *selected_text);
47
				   const gchar *selected_text,
48
				   MsgInfo *msginfo);
47 49

  
48 50
static void menu_selected_cb(void);
49 51

  
......
162 164
static void textview_menu_popup_cb(GObject *obj, GtkMenu *menu,
163 165
				   GtkTextView *textview,
164 166
				   const gchar *uri,
165
				   const gchar *selected_text)
167
				   const gchar *selected_text,
168
				   MsgInfo *msginfo)
166 169
{
167 170
	GtkWidget *separator, *menuitem;
168 171

  
169 172
	g_print("test: %p: textview menu popup\n", obj);
170 173
	g_print("test: %p: uri: %s, text: %s\n", obj, uri ? uri : "(none)",
171 174
		selected_text ? selected_text : "(none)");
175
	g_print("test: %p: msg: %s\n", obj,
176
		msginfo && msginfo->subject ? msginfo->subject : "");
172 177

  
173 178
	separator = gtk_separator_menu_item_new();
174 179
	gtk_menu_shell_append(GTK_MENU_SHELL(menu), separator);

Also available in: Unified diff