| Peas Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | ||||
PeasUIConfigurable;
PeasUIConfigurableInterface;
GtkWidget * peas_ui_configurable_create_configure_widget
(PeasUIConfigurable *configurable);
The PeasUIConfigurable interface will allow a PeasPlugin to provide a graphical interface for the user to configure the plugin through the PeasUIPluginManager: the PeasUIPluginManager will make the “Configure Plugin” button active when the selected plugin implements the PeasUIConfigurable interface.
To do so, the plugin writer will just need to implement the
create_configure_widget() method.
typedef struct {
GTypeInterface g_iface;
GtkWidget *(*create_configure_widget) (PeasUIConfigurable *configurable);
} PeasUIConfigurableInterface;
GtkWidget * peas_ui_configurable_create_configure_widget
(PeasUIConfigurable *configurable);
Creates the configure widget widget for the plugin.
The default implementation returns NULL.
|
A PeasUIConfigurable |
Returns : |
A GtkWindow used for configuration. |