aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-01-24 07:04:09 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-01-24 07:04:09 +0000
commitc405270db9c1de428a99c5525ab7c3c7f203ea7b (patch)
tree00d9a1a9b399e4aaa1b0a0ac783b9552d463fe0d /src
parentb1ce6e7edcbc5d79a4f2c526e4cf05b8230050af (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 'src')
-rw-r--r--src/plugin.c7
-rw-r--r--src/plugin.h3
-rw-r--r--src/sylpheed-marshal.list2
-rw-r--r--src/textview.c6
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);
}