diff -r 8250d6be8c02 -r 4826ec4c6ac5 pidgin/plugins/gtk-signals-test.c --- a/pidgin/plugins/gtk-signals-test.c Tue Sep 17 12:21:15 2013 +0530 +++ b/pidgin/plugins/gtk-signals-test.c Tue Sep 17 14:51:30 2013 +0530 @@ -107,8 +107,30 @@ /************************************************************************** * Plugin stuff **************************************************************************/ +static PidginPluginInfo * +plugin_query(GError **error) +{ + const gchar * const authors[] = { + "Gary Kramlich ", + NULL + }; + + return pidgin_plugin_info_new( + "id", GTK_SIGNAL_TEST_PLUGIN_ID, + "name", N_("GTK Signals Test"), + "version", DISPLAY_VERSION, + "category", N_("Testing"), + "summary", N_("Test to see that all ui signals are working properly."), + "description", N_("Test to see that all ui signals are working properly."), + "authors", authors, + "website", PURPLE_WEBSITE, + "abi-version", PURPLE_ABI_VERSION, + NULL + ); +} + static gboolean -plugin_load(PurplePlugin *plugin) +plugin_load(PurplePlugin *plugin, GError **error) { void *accounts_handle = pidgin_accounts_get_handle(); void *blist_handle = pidgin_blist_get_handle(); @@ -142,50 +164,8 @@ } static gboolean -plugin_unload(PurplePlugin *plugin) { +plugin_unload(PurplePlugin *plugin, GError **error) { return TRUE; } -static PurplePluginInfo info = -{ - PURPLE_PLUGIN_MAGIC, - PURPLE_MAJOR_VERSION, - PURPLE_MINOR_VERSION, - PURPLE_PLUGIN_STANDARD, /**< type */ - PIDGIN_PLUGIN_TYPE, /**< ui_requirement */ - 0, /**< flags */ - NULL, /**< dependencies */ - PURPLE_PRIORITY_DEFAULT, /**< priority */ - - GTK_SIGNAL_TEST_PLUGIN_ID, /**< id */ - N_("GTK Signals Test"), /**< name */ - DISPLAY_VERSION, /**< version */ - /** summary */ - N_("Test to see that all ui signals are working properly."), - /** description */ - N_("Test to see that all ui signals are working properly."), - "Gary Kramlich ", /**< author */ - PURPLE_WEBSITE, /**< homepage */ - - plugin_load, /**< load */ - plugin_unload, /**< unload */ - NULL, /**< destroy */ - - NULL, /**< ui_info */ - NULL, /**< extra_info */ - NULL, - NULL, - - /* padding */ - NULL, - NULL, - NULL, - NULL -}; - -static void -init_plugin(PurplePlugin *plugin) -{ -} - -PURPLE_INIT_PLUGIN(gtksignalstest, init_plugin, info) +PURPLE_PLUGIN_INIT(gtksignalstest, plugin_query, plugin_load, plugin_unload);