Copy dialog_use_icons field

2000-09-24  Bradford Hovinen  <hovinen@helixcode.com>

	* capplets/new-ui-properties/preferences.c
 	(preferences_clone): Copy dialog_use_icons field

	* capplets/new-ui-properties/prefs-widget-dialogs.c: Use standard
	macro for dialog_icons

	* capplets/new-ui-properties/prefs-widget.h
 	(struct _widget_desc_t): Remove field prefs_offset

	* capplets/new-ui-properties/preferences.c
 	(preferences_get_dialog_icons):
	(preferences_set_dialog_icons): Implement

	* capplets/new-ui-properties/prefs-widget.c (read_preferences):
	(register_callbacks):
	(toggled_cb):
	(selected_cb): Remove support for direct struct offset manipulation

	* capplet-widget.c (capplet_widget_multi_new): Set capid
	(capplet_widget_init): Set capid to current global value
	(capplet_widget_class_get_capid): Implement; return the capid
	passed on the command line

	* capplet-widget.h (struct _CappletWidget): Remove buffer between
	frame and plug sizes
This commit is contained in:
Bradford Hovinen 2000-09-24 15:49:19 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 3443f5573f
commit fb69525257
7 changed files with 60 additions and 34 deletions

View file

@ -42,7 +42,6 @@ struct _widget_desc_t
char *name;
gint (*get_func) (Preferences *);
void (*set_func) (Preferences *, gint);
gint prefs_offset;
};
typedef struct _widget_desc_t widget_desc_t;
@ -50,15 +49,13 @@ typedef struct _widget_desc_t widget_desc_t;
#define WD_CHECK(name, namestr) \
{ WDTYPE_CHECK, namestr "_toggle", \
(gint (*) (Preferences *)) preferences_get_##name, \
(void (*) (Preferences *, gint)) preferences_set_##name, \
0}
(void (*) (Preferences *, gint)) preferences_set_##name }
#define WD_OPTION(name, namestr) \
{ WDTYPE_OPTION, namestr "_select", \
(gint (*) (Preferences *)) preferences_get_##name, \
(void (*) (Preferences *, gint)) preferences_set_##name, \
0}
(void (*) (Preferences *, gint)) preferences_set_##name }
#define WD_END \
{ WDTYPE_NONE, NULL, NULL, NULL, 0 }
{ WDTYPE_NONE, NULL, NULL, NULL }
/* Preferences widget class proper */