/ gwsettingsinterface.h / Content
/* GWhere
* Copyright (C) 2000 Sébastien LECACHEUR
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef GW_GUI_GW_SETTINGS_INTERFACE_H
#define GW_GUI_GW_SETTINGS_INTERFACE_H
typedef gint (*gw_plugin_settings_pane_create_t) ( GtkWindow *settings, GtkContainer *parent, GtkWidget **pane);
typedef gint (*gw_plugin_settings_pane_load_t) ( GtkWidget *pane);
typedef gint (*gw_plugin_settings_pane_on_change_t) ( GtkEntry *entry, GtkWidget *pane);
typedef gint (*gw_plugin_settings_pane_apply_t) ( GtkWidget *pane);
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;
typedef gint (*gw_plugin_settings_init_t) ( GWSettingsModule **module);
GWSettingsModule * gw_settings_module_new ( );
gboolean gw_settings_module_check ( GWSettingsModule *module);
gint gw_settings_module_free ( GWSettingsModule *module);
#endif