diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugin.c | 7 | ||||
-rw-r--r-- | src/plugin.h | 3 | ||||
-rw-r--r-- | src/sylpheed-marshal.list | 2 | ||||
-rw-r--r-- | src/textview.c | 6 |
4 files changed, 11 insertions, 7 deletions
diff --git a/src/plugin.c b/src/plugin.c index d9d67e1d..07f940ac 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -164,13 +164,14 @@ static void syl_plugin_class_init(SylPluginClass *klass) G_STRUCT_OFFSET(SylPluginClass, textview_menu_popup), NULL, NULL, - sylpheed_marshal_VOID__POINTER_POINTER_STRING_STRING, + sylpheed_marshal_VOID__POINTER_POINTER_STRING_STRING_POINTER, G_TYPE_NONE, - 4, + 5, G_TYPE_POINTER, G_TYPE_POINTER, G_TYPE_STRING, - G_TYPE_STRING); + G_TYPE_STRING, + G_TYPE_POINTER); } void syl_plugin_signal_connect(const gchar *name, GCallback callback, diff --git a/src/plugin.h b/src/plugin.h index f21026fe..26b03242 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -69,7 +69,8 @@ struct _SylPluginClass GtkMenu *menu, GtkTextView *textview, const gchar *uri, - const gchar *selected_text); + const gchar *selected_text, + MsgInfo *msginfo); }; struct _SylPluginInfo diff --git a/src/sylpheed-marshal.list b/src/sylpheed-marshal.list index 9c87ba0c..c5eb054f 100644 --- a/src/sylpheed-marshal.list +++ b/src/sylpheed-marshal.list @@ -1,3 +1,3 @@ VOID:POINTER VOID:INT,POINTER -VOID:POINTER,POINTER,STRING,STRING +VOID:POINTER,POINTER,STRING,STRING,POINTER diff --git a/src/textview.c b/src/textview.c index edb668fa..942d3b7a 100644 --- a/src/textview.c +++ b/src/textview.c @@ -2048,8 +2048,10 @@ static void textview_populate_popup(GtkWidget *widget, GtkMenu *menu, finish: syl_plugin_signal_emit("textview-menu-popup", menu, - GTK_TEXT_VIEW(widget), uri ? uri->uri : NULL, - selected_text); + GTK_TEXT_VIEW(widget), + uri ? uri->uri : NULL, + selected_text, + textview->messageview->msginfo); g_free(selected_text); } |