gnome-screensaver r1552 - in trunk: . src
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-screensaver r1552 - in trunk: . src
- Date: Thu, 13 Nov 2008 19:22:47 +0000 (UTC)
Author: mccann
Date: Thu Nov 13 19:22:47 2008
New Revision: 1552
URL: http://svn.gnome.org/viewvc/gnome-screensaver?rev=1552&view=rev
Log:
2008-11-13 William Jon McCann <jmccann redhat com>
* src/gs-prefs.c (gs_prefs_load_from_gconf):
Make sure error is initialized to NULL.
Modified:
trunk/ChangeLog
trunk/src/gs-prefs.c
Modified: trunk/src/gs-prefs.c
==============================================================================
--- trunk/src/gs-prefs.c (original)
+++ trunk/src/gs-prefs.c Thu Nov 13 19:22:47 2008
@@ -338,7 +338,6 @@
GError *error;
error = NULL;
-
bvalue = gconf_client_get_bool (prefs->priv->gconf_client, KEY_IDLE_ACTIVATION_ENABLED, &error);
if (! error) {
_gs_prefs_set_idle_activation_enabled (prefs, bvalue);
@@ -346,6 +345,7 @@
key_error_and_free (KEY_IDLE_ACTIVATION_ENABLED, error);
}
+ error = NULL;
bvalue = gconf_client_get_bool (prefs->priv->gconf_client, KEY_LOCK_ENABLED, &error);
if (! error) {
_gs_prefs_set_lock_enabled (prefs, bvalue);
@@ -353,6 +353,7 @@
key_error_and_free (KEY_LOCK_ENABLED, error);
}
+ error = NULL;
bvalue = gconf_client_get_bool (prefs->priv->gconf_client, KEY_LOCK_DISABLE, &error);
if (! error) {
_gs_prefs_set_lock_disabled (prefs, bvalue);
@@ -360,6 +361,7 @@
key_error_and_free (KEY_LOCK_DISABLE, error);
}
+ error = NULL;
bvalue = gconf_client_get_bool (prefs->priv->gconf_client, KEY_USER_SWITCH_DISABLE, &error);
if (! error) {
_gs_prefs_set_user_switch_disabled (prefs, bvalue);
@@ -367,6 +369,7 @@
key_error_and_free (KEY_USER_SWITCH_DISABLE, error);
}
+ error = NULL;
value = gconf_client_get_int (prefs->priv->gconf_client, KEY_ACTIVATE_DELAY, &error);
if (! error) {
_gs_prefs_set_timeout (prefs, value);
@@ -374,6 +377,7 @@
key_error_and_free (KEY_ACTIVATE_DELAY, error);
}
+ error = NULL;
value = gconf_client_get_int (prefs->priv->gconf_client, KEY_POWER_DELAY, &error);
if (! error) {
_gs_prefs_set_power_timeout (prefs, value);
@@ -381,6 +385,7 @@
key_error_and_free (KEY_POWER_DELAY, error);
}
+ error = NULL;
value = gconf_client_get_int (prefs->priv->gconf_client, KEY_LOCK_DELAY, &error);
if (! error) {
_gs_prefs_set_lock_timeout (prefs, value);
@@ -388,6 +393,7 @@
key_error_and_free (KEY_LOCK_DELAY, error);
}
+ error = NULL;
value = gconf_client_get_int (prefs->priv->gconf_client, KEY_CYCLE_DELAY, &error);
if (! error) {
_gs_prefs_set_cycle_timeout (prefs, value);
@@ -395,6 +401,7 @@
key_error_and_free (KEY_CYCLE_DELAY, error);
}
+ error = NULL;
string = gconf_client_get_string (prefs->priv->gconf_client, KEY_MODE, &error);
if (! error) {
_gs_prefs_set_mode (prefs, string);
@@ -403,8 +410,11 @@
}
g_free (string);
+ error = NULL;
list = gconf_client_get_list (prefs->priv->gconf_client,
- KEY_THEMES, GCONF_VALUE_STRING, &error);
+ KEY_THEMES,
+ GCONF_VALUE_STRING,
+ &error);
if (! error) {
_gs_prefs_set_themes (prefs, list);
} else {
@@ -413,6 +423,7 @@
/* Embedded keyboard options */
+ error = NULL;
bvalue = gconf_client_get_bool (prefs->priv->gconf_client, KEY_KEYBOARD_ENABLED, &error);
if (! error) {
_gs_prefs_set_keyboard_enabled (prefs, bvalue);
@@ -420,6 +431,7 @@
key_error_and_free (KEY_KEYBOARD_ENABLED, error);
}
+ error = NULL;
string = gconf_client_get_string (prefs->priv->gconf_client, KEY_KEYBOARD_COMMAND, &error);
if (! error) {
_gs_prefs_set_keyboard_command (prefs, string);
@@ -428,6 +440,7 @@
}
g_free (string);
+ error = NULL;
string = gconf_client_get_string (prefs->priv->gconf_client, KEY_AWAY_MESSAGE, &error);
if (! error) {
_gs_prefs_set_away_message (prefs, string);
@@ -438,6 +451,7 @@
/* Logout options */
+ error = NULL;
bvalue = gconf_client_get_bool (prefs->priv->gconf_client, KEY_LOGOUT_ENABLED, &error);
if (! error) {
_gs_prefs_set_logout_enabled (prefs, bvalue);
@@ -445,6 +459,7 @@
key_error_and_free (KEY_LOGOUT_ENABLED, error);
}
+ error = NULL;
string = gconf_client_get_string (prefs->priv->gconf_client, KEY_LOGOUT_COMMAND, &error);
if (! error) {
_gs_prefs_set_logout_command (prefs, string);
@@ -453,6 +468,7 @@
}
g_free (string);
+ error = NULL;
value = gconf_client_get_int (prefs->priv->gconf_client, KEY_LOGOUT_DELAY, &error);
if (! error) {
_gs_prefs_set_logout_timeout (prefs, value);
@@ -462,6 +478,7 @@
/* User switching options */
+ error = NULL;
bvalue = gconf_client_get_bool (prefs->priv->gconf_client, KEY_USER_SWITCH_ENABLED, &error);
if (! error) {
_gs_prefs_set_user_switch_enabled (prefs, bvalue);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]