aboutsummaryrefslogtreecommitdiff
path: root/src/plugin.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-06-08 02:20:00 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2011-06-08 02:20:00 +0000
commit68b391b5c17420988118f2152d90832472bbfc0b (patch)
tree071ca7de27edf78e7d82522bd6b9c92265a45dda /src/plugin.c
parent17399356e839cf4a4d6ca12d52086fe01b857881 (diff)
added a new plug-in API: 'compose-send'.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2886 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 8b5ea643..9e152cd1 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -36,6 +36,7 @@ enum {
COMPOSE_CREATED,
COMPOSE_DESTROY,
TEXTVIEW_MENU_POPUP,
+ COMPOSE_SEND,
LAST_SIGNAL
};
@@ -172,6 +173,20 @@ static void syl_plugin_class_init(SylPluginClass *klass)
G_TYPE_STRING,
G_TYPE_STRING,
G_TYPE_POINTER);
+ plugin_signals[COMPOSE_SEND] =
+ g_signal_new("compose-send",
+ G_TYPE_FROM_CLASS(gobject_class),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET(SylPluginClass, compose_send),
+ NULL, NULL,
+ syl_plugin_marshal_BOOLEAN__POINTER_INT_INT_STRING_POINTER,
+ G_TYPE_BOOLEAN,
+ 5,
+ G_TYPE_POINTER,
+ G_TYPE_INT,
+ G_TYPE_INT,
+ G_TYPE_STRING,
+ G_TYPE_POINTER);
}
void syl_plugin_signal_connect(const gchar *name, GCallback callback,