Struct

PurplePluginAction

Description [src]

struct PurplePluginAction {
  char* label;
  PurplePluginActionCb callback;
  PurplePlugin* plugin;
  gpointer user_data;
}

Represents an action that the plugin can perform. This shows up in the Tools menu, under a submenu with the name of the plugin.

Structure members
label

The label to display in the user interface.

callback

The function to call when the user wants to perform this action.

plugin

The plugin that this action belongs to.

user_data

User data to pass to callback.

Constructors

purple_plugin_action_new

Allocates and returns a new PurplePluginAction. Use this to add actions in a list in the “actions-cb” callback for your plugin.

Instance methods

purple_plugin_action_free

Frees a PurplePluginAction.