[gnome-screensaver] Fix wrong GSettings call
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] Fix wrong GSettings call
- Date: Mon, 7 Feb 2011 18:26:10 +0000 (UTC)
commit bae11bc0debe08707a0eb3180341604ece579793
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 7 18:23:51 2011 +0000
Fix wrong GSettings call
We're trying to read an int when it's actually a guint.
src/gs-prefs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-prefs.c b/src/gs-prefs.c
index 4e1e9c7..cf8d8cb 100644
--- a/src/gs-prefs.c
+++ b/src/gs-prefs.c
@@ -377,7 +377,7 @@ gs_prefs_load_from_settings (GSPrefs *prefs)
_gs_prefs_set_logout_command (prefs, string);
g_free (string);
- uvalue = g_settings_get_int (prefs->priv->settings, KEY_LOGOUT_DELAY);
+ uvalue = _gs_settings_get_uint (prefs->priv->settings, KEY_LOGOUT_DELAY);
_gs_prefs_set_logout_timeout (prefs, uvalue);
/* User switching options */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]