![]() |
![]() |
![]() |
Peas Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites |
#define PEAS_UI_CONFIGURABLE_IFACE (obj)
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.
#define PEAS_UI_CONFIGURABLE_IFACE(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), PEAS_UI_TYPE_CONFIGURABLE, PeasUIConfigurableInterface))
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. |