diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-01-20 08:10:35 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-01-20 08:10:35 +0000 |
commit | 09cd68cbee77e56de1b7fd1be9367ea6822f0148 (patch) | |
tree | a58a7e7a32de3ece5f957129f7548aedcd127f91 /src/plugin.c | |
parent | f4b080cdddb753774b0a3b84ffaf5a5c7fd3978f (diff) |
added 'textview-menu-popup' signal for plug-ins.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2811 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index 6a656f06..d9d67e1d 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2010 Hiroyuki Yamamoto + * Copyright (C) 1999-2011 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,6 +24,7 @@ #include "plugin.h" #include "utils.h" #include "folder.h" +#include "sylpheed-marshal.h" G_DEFINE_TYPE(SylPlugin, syl_plugin, G_TYPE_OBJECT); @@ -34,6 +35,7 @@ enum { SUMMARYVIEW_MENU_POPUP, COMPOSE_CREATED, COMPOSE_DESTROY, + TEXTVIEW_MENU_POPUP, LAST_SIGNAL }; @@ -155,6 +157,20 @@ static void syl_plugin_class_init(SylPluginClass *klass) G_TYPE_NONE, 1, G_TYPE_POINTER); + plugin_signals[TEXTVIEW_MENU_POPUP] = + g_signal_new("textview-menu-popup", + G_TYPE_FROM_CLASS(gobject_class), + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET(SylPluginClass, + textview_menu_popup), + NULL, NULL, + sylpheed_marshal_VOID__POINTER_POINTER_STRING_STRING, + G_TYPE_NONE, + 4, + G_TYPE_POINTER, + G_TYPE_POINTER, + G_TYPE_STRING, + G_TYPE_STRING); } void syl_plugin_signal_connect(const gchar *name, GCallback callback, |