Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/totem/ drwxr-xr-x |
Viewing file: Select action/file-type:
Synopsis#include <totem-plugin.h> TotemPlugin; TotemPluginClass; enum TotemPluginError; gboolean (*TotemPluginActivationFunc) (TotemPlugin *plugin, TotemObject *totem, GError **error); void (*TotemPluginDeactivationFunc) (TotemPlugin *plugin, TotemObject *totem); GtkWidget * (*TotemPluginWidgetFunc) (TotemPlugin *plugin); #define TOTEM_PLUGIN_DEFINE_TYPE (TypeName, type_name, TYPE_PARENT) #define TOTEM_PLUGIN_REGISTER (PluginName, plugin_name) #define TOTEM_PLUGIN_REGISTER_EXTENDED (PluginName, plugin_name, _C_) #define TOTEM_PLUGIN_REGISTER_TYPE (type_name) gboolean totem_plugin_activate (TotemPlugin *plugin, TotemObject *totem, GError **error); void totem_plugin_deactivate (TotemPlugin *plugin, TotemObject *totem); GtkWidget * totem_plugin_create_configure_dialog (TotemPlugin *plugin); gboolean totem_plugin_is_configurable (TotemPlugin *plugin); GtkBuilder * totem_plugin_load_interface (TotemPlugin *plugin, const char *name, gboolean fatal, GtkWindow *parent, gpointer user_data); char * totem_plugin_find_file (TotemPlugin *plugin, const char *file); DescriptionTotemPlugin is a general-purpose architecture for adding plugins to Totem, with derived support for different programming languages.
DetailsTotemPlugintypedef struct _TotemPlugin TotemPlugin; All the fields in the TotemPlugin structure are private and should never be accessed directly.
TotemPluginClasstypedef struct { GObjectClass parent_class; /* Virtual public methods */ TotemPluginActivationFunc activate; TotemPluginDeactivationFunc deactivate; TotemPluginWidgetFunc create_configure_dialog; } TotemPluginClass; The class structure for the TotemPlParser type.
enum TotemPluginErrortypedef enum { TOTEM_PLUGIN_ERROR_ACTIVATION } TotemPluginError; Error codes returned by TotemPlugin operations.
TotemPluginActivationFunc ()gboolean (*TotemPluginActivationFunc) (TotemPlugin *plugin, TotemObject *totem, GError **error);
Called when the user has requested
If an error is encountered while setting up the plugin,
TotemPluginDeactivationFunc ()void (*TotemPluginDeactivationFunc) (TotemPlugin *plugin, TotemObject *totem);
Called when the user has requested It should be possible to activate and deactivate the plugin multiple times sequentially in a single Totem session without memory or resource leaks, or errors.
TotemPluginWidgetFunc ()GtkWidget * (*TotemPluginWidgetFunc) (TotemPlugin *plugin); Called when the configuration dialogue for the plugin needs to be built, this function should return a complete window which will be shown by the Totem code. The widget needs to be capable of hiding itself when configuration is complete. If your plugin is not configurable, do not define this function.
TOTEM_PLUGIN_DEFINE_TYPE()#define TOTEM_PLUGIN_DEFINE_TYPE(TypeName, type_name, TYPE_PARENT)
Registers a type to be used inside a Totem plugin, but not the plugin's itself;
use
TOTEM_PLUGIN_REGISTER()#define TOTEM_PLUGIN_REGISTER(PluginName, plugin_name) Registers a new Totem plugin type. A plugin is, at its core, just a class which is instantiated and activated on the user's request. This macro registers that class.
TOTEM_PLUGIN_REGISTER_EXTENDED()#define TOTEM_PLUGIN_REGISTER_EXTENDED(PluginName, plugin_name, _C_)
Registers a new Totem plugin type with custom code in the module type registration
function. See
A variable named
TOTEM_PLUGIN_REGISTER_TYPE()#define TOTEM_PLUGIN_REGISTER_TYPE(type_name)
Calls the type registration function for a type inside a plugin module previously
defined with
totem_plugin_activate ()gboolean totem_plugin_activate (TotemPlugin *plugin, TotemObject *totem, GError **error);
Activates the passed
totem_plugin_deactivate ()void totem_plugin_deactivate (TotemPlugin *plugin, TotemObject *totem);
Deactivates
totem_plugin_create_configure_dialog ()GtkWidget * totem_plugin_create_configure_dialog (TotemPlugin *plugin); Returns the plugin's configuration dialog, as created by the plugin's create_configure_dialog method.
totem_plugin_is_configurable ()gboolean totem_plugin_is_configurable (TotemPlugin *plugin);
Returns
totem_plugin_load_interface ()GtkBuilder * totem_plugin_load_interface (TotemPlugin *plugin, const char *name, gboolean fatal, GtkWindow *parent, gpointer user_data); Loads an interface file (GtkBuilder UI file) for a plugin, given its filename and assuming it's installed in the plugin's data directory. This should be used instead of attempting to load interfaces manually in plugins.
totem_plugin_find_file ()char * totem_plugin_find_file (TotemPlugin *plugin, const char *file);
Finds the specified This should be used by plugins to find plugin-specific resource files.
Property DetailsThe
|
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0158 ]-- |