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:
parent
8e834c8342
commit
06603e6de0
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue