/ gwsettingsinterface.h / Type definitions / Description

Type definitions



gw_plugin_settings_pane_create_t

Functions specification
typedef gint (*gw_plugin_settings_pane_create_t) ( GtkWindow *settings, GtkContainer *parent, GtkWidget **pane);
Creates the pane to display in the setting window box.

Parameters
settings settings window box
parent container of the pane
pane pane to display


gw_plugin_settings_pane_load_t

Functions specification
typedef gint (*gw_plugin_settings_pane_load_t) ( GtkWidget *pane);
Loads values of the pane.

Parameters
pane pane to load values


gw_plugin_settings_pane_on_change_t

Functions specification
typedef gint (*gw_plugin_settings_pane_on_change_t) ( GtkEntry *entry, GtkWidget *pane);
Called when the pane is modified.

Parameters
entry invoker event
pane modified pane


gw_plugin_settings_pane_apply_t

Functions specification
typedef gint (*gw_plugin_settings_pane_apply_t) ( GtkWidget *pane);
Applies changes in the pane.

Parameters
pane pane to applay changes


gw_settings_module_s

This structure centralize all implemented functions of one settings module
typedef struct gw_settings_module_s
{
	gchar *name;
	GtkContainer *page;
	GtkWidget *pane;
	GtkWindow *settings_window;
	struct gw_settings_module_s **child;
	gw_plugin_settings_pane_create_t create;
	gw_plugin_settings_pane_load_t load;
	gw_plugin_settings_pane_on_change_t on_change;
	gw_plugin_settings_pane_apply_t apply;
}GWSettingsModule;
Settings module structure.

Fields
name settings module name
page settings module page in notebook
pane settings module pane (to not destroy when free GWSettingsModule)
settings_window settings window box (to not destroy when free GWSettingsModule)
child table of all children ended by NULL
create create pane function
load load pane function
on_change on change event callback pane function
apply apply callback pane function


gw_plugin_settings_init_t

Functions specification
typedef gint (*gw_plugin_settings_init_t) ( GWSettingsModule **module);
Inits the settings module data structure

Parameters
module pointer to the future settings module