diff options
author | Alan Swanson <swanson@ukfsn.org> | 2006-01-14 13:38:55 +0000 |
---|---|---|
committer | Rodney Dawes <dobey@src.gnome.org> | 2006-01-14 13:38:55 +0000 |
commit | 0f56daf38d2fd44aaeeb95fb79dd5b5ebe8d6765 (patch) | |
tree | 8cec76cd5d32a7579c6cb731e4d03bd6b295c3d3 /libbackground/preferences.c | |
parent | aa194e3fe2911a827a7f49f7d706a448135a251c (diff) | |
download | gnome-control-center-0f56daf38d2fd44aaeeb95fb79dd5b5ebe8d6765.tar.gz |
Handle the new WPTYPE_ZOOM setting and return proper geometry for itNAUTILUS_2_15_2NAUTILUS_2_15_1NAUTILUS_2_14_3NAUTILUS_2_14_1NAUTILUS_2_14_0NAUTILUS_2_13_92NAUTILUS_2_13_91NAUTILUS_2_13_90NAUTILUS_2_13_4GNOME_2_14_BRANCHPOINT
2006-01-14 Alan Swanson <swanson@ukfsn.org>
* applier.c (get_geometry): Handle the new WPTYPE_ZOOM setting and
return proper geometry for it
* preferences.c (_bg_wptype_values[]): Add the alias for the zoom type
(read_wptype_from_string): Handle setting the type for zoom
(bg_preferences_get_wptype_as_string): Return the string for the new
zoom setting type
* preferences.h (_wallpaper_type_t): Add the new zoom type
Partial code for #105231
Diffstat (limited to 'libbackground/preferences.c')
-rw-r--r-- | libbackground/preferences.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbackground/preferences.c b/libbackground/preferences.c index e0c0519a0..84eda13c9 100644 --- a/libbackground/preferences.c +++ b/libbackground/preferences.c @@ -50,6 +50,7 @@ static GEnumValue _bg_wptype_values[] = { { WPTYPE_CENTERED, "WPTYPE_CENTERED", "centered"}, { WPTYPE_SCALED, "WPTYPE_SCALED", "scaled"}, { WPTYPE_STRETCHED, "WPTYPE_STRETCHED", "stretched"}, + { WPTYPE_ZOOM, "WPTYPE_ZOOM", "zoom"}, { WPTYPE_NONE, "WPTYPE_NONE", "none"}, { 0, NULL, NULL } }; @@ -383,6 +384,8 @@ read_wptype_from_string (gchar *string) type = WPTYPE_SCALED; } else if (!strncmp (string, "stretched", sizeof ("stretched"))) { type = WPTYPE_STRETCHED; + } else if (!strncmp (string, "zoom", sizeof ("zoom"))) { + type = WPTYPE_ZOOM; } g_free (string); } @@ -432,6 +435,8 @@ bg_preferences_get_wptype_as_string (wallpaper_type_t wp) return "scaled"; case WPTYPE_STRETCHED: return "stretched"; + case WPTYPE_ZOOM: + return "zoom"; case WPTYPE_NONE: return "none"; case WPTYPE_UNSET: |