aboutsummaryrefslogtreecommitdiff
path: root/src/plugin.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-07-06 08:12:20 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-07-06 08:12:20 +0000
commit99bac05ea5d0dc7a7aefdfe1e6066c31170824cb (patch)
tree22d16310ef202ade10133651a9bd7753ed055cac /src/plugin.c
parent3ae0b30d7ebba63f15ef7b9ec0aff2a4c8b19e41 (diff)
added new plug-in APIs for manipulating the summary view popup menu.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2601 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c
index e428898c..85da3f10 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -31,6 +31,7 @@ enum {
PLUGIN_LOAD,
PLUGIN_UNLOAD,
FOLDERVIEW_MENU_POPUP,
+ SUMMARYVIEW_MENU_POPUP,
COMPOSE_CREATED,
COMPOSE_DESTROY,
LAST_SIGNAL
@@ -107,6 +108,17 @@ static void syl_plugin_class_init(SylPluginClass *klass)
G_TYPE_NONE,
1,
G_TYPE_POINTER);
+ plugin_signals[SUMMARYVIEW_MENU_POPUP] =
+ g_signal_new("summaryview-menu-popup",
+ G_TYPE_FROM_CLASS(gobject_class),
+ G_SIGNAL_RUN_FIRST,
+ G_STRUCT_OFFSET(SylPluginClass,
+ summaryview_menu_popup),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__POINTER,
+ G_TYPE_NONE,
+ 1,
+ G_TYPE_POINTER);
plugin_signals[COMPOSE_CREATED] =
g_signal_new("compose-created",
G_TYPE_FROM_CLASS(gobject_class),
@@ -433,6 +445,8 @@ static GtkItemFactory *get_item_factory(const gchar *path)
ifactory = syl_plugin_lookup_symbol("folderview_imap_popup_factory");
else if (strncmp(path, "<NewsFolder>", 12) == 0)
ifactory = syl_plugin_lookup_symbol("folderview_news_popup_factory");
+ else if (strncmp(path, "<SummaryView>", 13) == 0)
+ ifactory = syl_plugin_lookup_symbol("summaryview_popup_factory");
else
ifactory = syl_plugin_lookup_symbol("main_window_menu_factory");