![]() |
![]() |
![]() |
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 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.
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 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
.
|
A PeasUIConfigurable |
Returns : |
A GtkWidget used for configuration. |