diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-11-06 04:59:31 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-11-06 04:59:31 +0000 |
commit | 9aa60b8ee830c9ecce85ba76bbd57085ef8bddb5 (patch) | |
tree | 4da74e9d3b12af411a6c05f8149121b1ac72cc17 | |
parent | ee3bcbc5320363b0d2582f6ca00c888a88d9539c (diff) |
added <IMAPFolder> and <NewsFolder> to parent factory.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2336 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/main.c | 4 | ||||
-rw-r--r-- | src/plugin.c | 4 |
3 files changed, 16 insertions, 0 deletions
@@ -1,5 +1,13 @@ 2009-11-06 + * src/plugin.c + src/main.c: + syl_plugin_add_menuitem() + syl_plugin_add_factory_item(): added <IMAPFolder> and <NewsFolder> + to parent factory. + +2009-11-06 + * configure.in: increased LT_CURRENT because the interface is not completely compatible. @@ -1100,6 +1100,10 @@ static void plugin_init(void) folderview_get_selected_item); syl_plugin_add_symbol("folderview_mail_popup_factory", mainwin->folderview->mail_factory); + syl_plugin_add_symbol("folderview_imap_popup_factory", + mainwin->folderview->imap_factory); + syl_plugin_add_symbol("folderview_news_popup_factory", + mainwin->folderview->news_factory); syl_plugin_add_symbol("summaryview", mainwin->summaryview); syl_plugin_add_symbol("summary_select_by_msgnum", diff --git a/src/plugin.c b/src/plugin.c index 087b56d8..1078f78f 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -378,6 +378,10 @@ static GtkItemFactory *get_item_factory(const gchar *path) ifactory = syl_plugin_lookup_symbol("main_window_menu_factory"); else if (strncmp(path, "<MailFolder>", 12) == 0) ifactory = syl_plugin_lookup_symbol("folderview_mail_popup_factory"); + else if (strncmp(path, "<IMAPFolder>", 12) == 0) + 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 ifactory = syl_plugin_lookup_symbol("main_window_menu_factory"); |