[gnome-control-center/extensible-shell] [appearance] Set some default values for saving
- From: William Jon McCann <mccann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-control-center/extensible-shell] [appearance] Set some default values for saving
- Date: Sat, 16 Jan 2010 10:39:42 +0000 (UTC)
commit f7cf140b9bfec156a929908ecab3bed394af300d
Author: William Jon McCann <jmccann redhat com>
Date: Sat Jan 16 05:39:22 2010 -0500
[appearance] Set some default values for saving
capplets/appearance/cc-background-page.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/capplets/appearance/cc-background-page.c b/capplets/appearance/cc-background-page.c
index 7ebdd94..cd31292 100644
--- a/capplets/appearance/cc-background-page.c
+++ b/capplets/appearance/cc-background-page.c
@@ -959,7 +959,7 @@ update_gconf_from_item (CcBackgroundPage *page,
gconf_change_set_set_string (cs, WP_OPTIONS_KEY, "none");
gconf_change_set_set_string (cs, WP_FILE_KEY, "");
} else {
- gchar *uri;
+ char *uri;
if (g_utf8_validate (filename, -1, NULL))
uri = g_strdup (filename);
@@ -973,14 +973,26 @@ update_gconf_from_item (CcBackgroundPage *page,
g_free (uri);
}
+ if (scale == NULL) {
+ scale = g_strdup ("scaled");
+ }
gconf_change_set_set_string (cs,
WP_OPTIONS_KEY,
scale);
}
+ if (shade == NULL) {
+ shade = g_strdup ("solid");
+ }
gconf_change_set_set_string (cs,
WP_SHADING_KEY,
shade);
+ if (pcolor == NULL) {
+ pcolor = g_strdup ("#000000000000");
+ }
+ if (scolor == NULL) {
+ scolor = g_strdup ("#000000000000");
+ }
gconf_change_set_set_string (cs, WP_PCOLOR_KEY, pcolor);
gconf_change_set_set_string (cs, WP_SCOLOR_KEY, scolor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]