diff -r 1bcc14114857 -r 2e04586cf6e8 pidgin/plugins/history.c --- a/pidgin/plugins/history.c Tue Sep 17 17:56:05 2013 +0530 +++ b/pidgin/plugins/history.c Tue Sep 17 18:27:05 2013 +0530 @@ -190,8 +190,33 @@ history_prefs_check((PurplePlugin *)data); } +static PidginPluginInfo * +plugin_query(GError **error) +{ + const gchar * const authors[] = { + "Sean Egan ", + NULL + }; + + return pidgin_plugin_info_new( + "id", HISTORY_PLUGIN_ID, + "name", N_("History"), + "version", DISPLAY_VERSION, + "category", N_("User interface"), + "summary", N_("Shows recently logged conversations in new " + "conversations."), + "description", N_("When a new conversation is opened this plugin will " + "insert the last conversation into the current " + "conversation."), + "authors", authors, + "website", PURPLE_WEBSITE, + "abi-version", PURPLE_ABI_VERSION, + NULL + ); +} + static gboolean -plugin_load(PurplePlugin *plugin) +plugin_load(PurplePlugin *plugin, GError **error) { purple_signal_connect(purple_conversations_get_handle(), "conversation-created", @@ -208,42 +233,10 @@ return TRUE; } -static PurplePluginInfo info = +static gboolean +plugin_unload(PurplePlugin *plugin, GError **error) { - PURPLE_PLUGIN_MAGIC, - PURPLE_MAJOR_VERSION, - PURPLE_MINOR_VERSION, - PURPLE_PLUGIN_STANDARD, - PIDGIN_PLUGIN_TYPE, - 0, - NULL, - PURPLE_PRIORITY_DEFAULT, - HISTORY_PLUGIN_ID, - N_("History"), - DISPLAY_VERSION, - N_("Shows recently logged conversations in new conversations."), - N_("When a new conversation is opened this plugin will insert " - "the last conversation into the current conversation."), - "Sean Egan ", - PURPLE_WEBSITE, - plugin_load, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - - /* padding */ - NULL, - NULL, - NULL, - NULL -}; - -static void -init_plugin(PurplePlugin *plugin) -{ + return TRUE; } -PURPLE_INIT_PLUGIN(history, init_plugin, info) +PURPLE_PLUGIN_INIT(history, plugin_query, plugin_load, plugin_unload);