gint plugin_init(gchar **error)
{
if( !check_plugin_version(MAKE_NUMERIC_VERSION(3, 7, 8, 31),
- VERSION_NUMERIC, "RSSyl", error) )
+ VERSION_NUMERIC, PLUGIN_NAME, error) )
return -1;
curl_global_init(CURL_GLOBAL_DEFAULT);
const gchar *plugin_name(void)
{
- return "RSSyl";
+ return PLUGIN_NAME;
}
const gchar *plugin_desc(void)
else
rssyl_update_format();
- prefs_toolbar_register_plugin_item(TOOLBAR_MAIN, "RSSyl", _("Refresh all feeds"), rssyl_toolbar_cb_refresh_all_feeds, NULL);
+ prefs_toolbar_register_plugin_item(TOOLBAR_MAIN, PLUGIN_NAME, _("Refresh all feeds"), rssyl_toolbar_cb_refresh_all_feeds, NULL);
if( rssyl_prefs_get()->refresh_on_startup &&
claws_is_starting() )
{
rssyl_opml_export();
- prefs_toolbar_unregister_plugin_item(TOOLBAR_MAIN, "RSSyl", _("Refresh all feeds"));
+ prefs_toolbar_unregister_plugin_item(TOOLBAR_MAIN, PLUGIN_NAME, _("Refresh all feeds"));
rssyl_prefs_done();
rssyl_gtk_done();
if( rssyl_class.idstr == NULL ) {
rssyl_class.type = F_UNKNOWN;
rssyl_class.idstr = "rssyl";
- rssyl_class.uistr = "RSSyl";
+ rssyl_class.uistr = PLUGIN_NAME;
/* Folder functions */
rssyl_class.new_folder = rssyl_new_folder;
#include "libfeed/feed.h"
+#define PLUGIN_NAME "RSSyl"
+
/* Name of directory in rcdir where RSSyl will store its data. */
-#define RSSYL_DIR "RSSyl"
+#define RSSYL_DIR PLUGIN_NAME
/* Folder name for a new feed, before it is parsed for the first time. */
#define RSSYL_NEW_FOLDER_NAME "NewFeed"
MainWindow *mainwin = mainwindow_get_mainwindow();
gtk_action_group_add_actions(mainwin->action_group, mainwindow_add_mailbox,
1, (gpointer)mainwin);
- MENUITEM_ADDUI_ID_MANAGER(mainwin->ui_manager, "/Menu/File/AddMailbox", "RSSyl",
- "File/AddMailbox/RSSyl", GTK_UI_MANAGER_MENUITEM,
+ MENUITEM_ADDUI_ID_MANAGER(mainwin->ui_manager, "/Menu/File/AddMailbox", PLUGIN_NAME,
+ "File/AddMailbox/"PLUGIN_NAME, GTK_UI_MANAGER_MENUITEM,
main_menu_id);
rssyl_fill_popup_menu_labels();
folderview_register_popup(&rssyl_popup);
gchar *rcpath;
path[0] = _("Plugins");
- path[1] = "RSSyl"; /* We don't need this translated */
+ path[1] = PLUGIN_NAME; /* We don't need this translated */
path[2] = NULL;
prefs_set_default(param);