Add an enum type for specifying that we don't know the type (i.e. the key

* preferences.c: (bg_preferences_load),
	(bg_preferences_merge_entry), (read_wptype_from_string),
	(read_color_from_string), (bg_preferences_get_wptype_as_string):
	* preferences.h:

	Add an enum type for specifying that we don't know the type (i.e. the
	key was not available, or set to something invalid). Currently it
	was using -1, which barfs with some compilers that set enums
	to be uint.
This commit is contained in:
Seth Nickell 2002-03-15 09:24:06 +00:00
parent 8e834c8342
commit 06603e6de0

View file

@ -52,7 +52,8 @@ typedef enum _orientation_t {
typedef enum _wallpaper_type_t {
WPTYPE_TILED = 0, WPTYPE_CENTERED, WPTYPE_SCALED,
WPTYPE_STRETCHED, WPTYPE_EMBOSSED, WPTYPE_NONE
WPTYPE_STRETCHED, WPTYPE_EMBOSSED, WPTYPE_NONE,
WPTYPE_UNSET
} wallpaper_type_t;
struct _BGPreferences