PeasUIConfigurable

PeasUIConfigurable — Interface to provide a plugin configuration UI

Synopsis

                    PeasUIConfigurable;
                    PeasUIConfigurableInterface;
GtkWidget *         peas_ui_configurable_create_configure_widget
                                                        (PeasUIConfigurable *configurable);

Object Hierarchy

  GInterface
   +----PeasUIConfigurable

Prerequisites

PeasUIConfigurable requires GObject.

Description

The PeasUIConfigurable interface will allow a plugin to provide a graphical interface for the user to configure the plugin through the PeasUIPluginManager: the PeasUIPluginManager will make its “Configure Plugin” button active when the selected plugin implements the PeasUIConfigurable interface.

To allow plugin configuration from the PeasUIPluginManager, the plugin writer will just need to implement the create_configure_widget() method.

Details

PeasUIConfigurable

typedef struct _PeasUIConfigurable PeasUIConfigurable;

PeasUIConfigurableInterface

typedef struct {
  GTypeInterface g_iface;

  GtkWidget  *(*create_configure_widget)  (PeasUIConfigurable  *configurable);
} PeasUIConfigurableInterface;

peas_ui_configurable_create_configure_widget ()

GtkWidget *         peas_ui_configurable_create_configure_widget
                                                        (PeasUIConfigurable *configurable);

Creates the configure widget widget for the plugin. The returned widget should allow configuring all the relevant aspects of the plugin, and should allow instant-apply, as promoted by the Gnome Human Interface Guidelines.

PeasUIPluginManager will embed the returned widget into a dialog box, but you shouldn't take this behaviour for granted as other implementations of a plugin manager UI might do otherwise.

This method should always return a valid GtkWidget instance, never NULL.

configurable :

A PeasUIConfigurable

Returns :

A GtkWidget used for configuration.