GtranslatorPlugin

GtranslatorPlugin

Synopsis

                    GtranslatorPlugin;
void                gtranslator_plugin_activate         (GtranslatorPlugin *plugin,
                                                         GtranslatorWindow *window);
void                gtranslator_plugin_deactivate       (GtranslatorPlugin *plugin,
                                                         GtranslatorWindow *window);
void                gtranslator_plugin_update_ui        (GtranslatorPlugin *plugin,
                                                         GtranslatorWindow *window);
gboolean            gtranslator_plugin_is_configurable  (GtranslatorPlugin *plugin);
GtkWidget *         gtranslator_plugin_create_configure_dialog
                                                        (GtranslatorPlugin *plugin);
#define             GTR_PLUGIN_REGISTER_TYPE_WITH_CODE  (PluginName, plugin_name, CODE)
#define             GTR_PLUGIN_REGISTER_TYPE            (PluginName, plugin_name)
#define             GTR_PLUGIN_DEFINE_TYPE_WITH_CODE    (ObjectName, object_name, PARENT_TYPE, CODE)
#define             GTR_PLUGIN_DEFINE_TYPE              (ObjectName, object_name, PARENT_TYPE)

Description

Details

GtranslatorPlugin

typedef struct {
  GObject parent;
} GtranslatorPlugin;


gtranslator_plugin_activate ()

void                gtranslator_plugin_activate         (GtranslatorPlugin *plugin,
                                                         GtranslatorWindow *window);

Activates the plugin.

plugin :

a GtranslatorPlugin

window :

a GtranslatorWindow

gtranslator_plugin_deactivate ()

void                gtranslator_plugin_deactivate       (GtranslatorPlugin *plugin,
                                                         GtranslatorWindow *window);

Deactivates the plugin.

plugin :

a GtranslatorPlugin

window :

a GtranslatorWindow

gtranslator_plugin_update_ui ()

void                gtranslator_plugin_update_ui        (GtranslatorPlugin *plugin,
                                                         GtranslatorWindow *window);

Triggers an update of the user interface to take into account state changes caused by the plugin.

plugin :

a GtranslatorPlugin

window :

a GtranslatorWindow

gtranslator_plugin_is_configurable ()

gboolean            gtranslator_plugin_is_configurable  (GtranslatorPlugin *plugin);

Whether the plugin is configurable.

plugin :

a GtranslatorPlugin

Returns :

TRUE if the plugin is configurable:

gtranslator_plugin_create_configure_dialog ()

GtkWidget *         gtranslator_plugin_create_configure_dialog
                                                        (GtranslatorPlugin *plugin);

Creates the configure dialog widget for the plugin.

plugin :

a GtranslatorPlugin

Returns :

the configure dialog widget for the plugin.

GTR_PLUGIN_REGISTER_TYPE_WITH_CODE()

#define             GTR_PLUGIN_REGISTER_TYPE_WITH_CODE(PluginName, plugin_name, CODE)

Utility macro used to register plugins with additional code.

PluginName :

plugin_name :

CODE :


GTR_PLUGIN_REGISTER_TYPE()

#define             GTR_PLUGIN_REGISTER_TYPE(PluginName, plugin_name)

Utility macro used to register plugins.

PluginName :

plugin_name :


GTR_PLUGIN_DEFINE_TYPE_WITH_CODE()

#define             GTR_PLUGIN_DEFINE_TYPE_WITH_CODE(ObjectName, object_name, PARENT_TYPE, CODE)

Utility macro used to register gobject types in plugins with additional code.

ObjectName :

object_name :

PARENT_TYPE :

CODE :


GTR_PLUGIN_DEFINE_TYPE()

#define             GTR_PLUGIN_DEFINE_TYPE(ObjectName, object_name, PARENT_TYPE)

Utility macro used to register gobject types in plugins.

ObjectName :

object_name :

PARENT_TYPE :