diff options
author | Gary Kramlich <grim@reaperworld.com> | 2022-09-12 22:18:06 -0500 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2022-09-12 22:18:06 -0500 |
commit | 0ab9a4ee7af611de38f3eba5eb9fde70d801ae0f (patch) | |
tree | c1489ad7c320d0f25deeebbebedd443c0bfbf6fb /libpurple/plugins.c | |
parent | 5b0add4daa9c3635ae0495bdc6a9fc8b400dacd1 (diff) | |
download | pidgin-0ab9a4ee7af611de38f3eba5eb9fde70d801ae0f.tar.gz |
Remove PurplePluginAction as everything except finch as been ported to GAction/GMenu.
The finch buddy list code has just been #if 0'd for the time being.
Testing Done:
Compiled and greped for `"actions-cb"` to make sure no plugins were still using the property.
Reviewed at https://reviews.imfreedom.org/r/1755/
Diffstat (limited to 'libpurple/plugins.c')
-rw-r--r-- | libpurple/plugins.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/libpurple/plugins.c b/libpurple/plugins.c index 19f1be4401..7f1b08965a 100644 --- a/libpurple/plugins.c +++ b/libpurple/plugins.c @@ -256,44 +256,6 @@ purple_plugin_get_dependent_plugins(PurplePlugin *plugin) } /************************************************************************** - * PluginAction API - **************************************************************************/ -PurplePluginAction * -purple_plugin_action_new(const char* label, PurplePluginActionCb callback) -{ - PurplePluginAction *action; - - g_return_val_if_fail(label != NULL && callback != NULL, NULL); - - action = g_new0(PurplePluginAction, 1); - - action->label = g_strdup(label); - action->callback = callback; - - return action; -} - -void -purple_plugin_action_free(PurplePluginAction *action) -{ - g_return_if_fail(action != NULL); - - g_free(action->label); - g_free(action); -} - -static PurplePluginAction * -purple_plugin_action_copy(PurplePluginAction *action) -{ - g_return_val_if_fail(action != NULL, NULL); - - return purple_plugin_action_new(action->label, action->callback); -} - -G_DEFINE_BOXED_TYPE(PurplePluginAction, purple_plugin_action, - purple_plugin_action_copy, purple_plugin_action_free) - -/************************************************************************** * Plugins API **************************************************************************/ GList * |