Total reorganization

2001-09-21  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c: Total reorganization

2001-09-17  Bradford Hovinen  <hovinen@ximian.com>

	* preferences.c (preferences_save): Move from
	applier.c:output_compat_prefs; it really belongs here
	(preferences_class_init): Don't construct an applier here

	* background-properties-capplet.c (setup_dialog): Create a new
	applier for every dialog
	(create_dialog): Create applier locally, just for this one widget
	(apply_settings): Create applier locally and destroy on exit
	(main): Remove call to gnome_window_set_...
This commit is contained in:
Bradford Hovinen 2001-09-22 02:25:59 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent b90a84da60
commit ee3356381a
6 changed files with 878 additions and 824 deletions

View file

@ -41,10 +41,14 @@ typedef struct _ApplierClass ApplierClass;
typedef struct _ApplierPrivate ApplierPrivate;
typedef enum _ApplierType {
APPLIER_ROOT, APPLIER_PREVIEW
} ApplierType;
struct _Applier
{
GtkObject object;
ApplierPrivate *private;
ApplierPrivate *p;
};
struct _ApplierClass
@ -54,14 +58,13 @@ struct _ApplierClass
guint applier_get_type (void);
GtkObject *applier_new (void);
GtkObject *applier_new (ApplierType type);
void applier_apply_prefs (Applier *applier,
const Preferences *prefs,
gboolean do_root,
gboolean do_preview);
const Preferences *prefs);
gboolean applier_render_color_p (Applier *applier);
gboolean applier_render_color_p (const Applier *applier,
const Preferences *prefs);
GtkWidget *applier_get_preview_widget (Applier *applier);
GdkPixbuf *applier_get_wallpaper_pixbuf (Applier *applier);