[gnome-settings-daemon] keyboard: Use upstream g_settings_get_uint()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] keyboard: Use upstream g_settings_get_uint()
- Date: Thu, 26 Apr 2012 18:38:42 +0000 (UTC)
commit af1ecc006680370740b6074436083d84b1bc5466
Author: Bastien Nocera <hadess hadess net>
Date: Thu Apr 26 17:32:10 2012 +0100
keyboard: Use upstream g_settings_get_uint()
Instead of our own implementation.
plugins/keyboard/gsd-keyboard-manager.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-manager.c b/plugins/keyboard/gsd-keyboard-manager.c
index a33460c..84c6e00 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -182,16 +182,6 @@ numlock_install_xkb_callback (GsdKeyboardManager *manager)
manager);
}
-static guint
-_gsd_settings_get_uint (GSettings *settings,
- const char *key)
-{
- guint value;
-
- g_settings_get (settings, key, "u", &value);
- return value;
-}
-
static void
apply_settings (GSettings *settings,
const char *key,
@@ -211,8 +201,8 @@ apply_settings (GSettings *settings,
repeat = g_settings_get_boolean (settings, KEY_REPEAT);
click = g_settings_get_boolean (settings, KEY_CLICK);
- interval = _gsd_settings_get_uint (settings, KEY_INTERVAL);
- delay = _gsd_settings_get_uint (settings, KEY_DELAY);
+ interval = g_settings_get_uint (settings, KEY_INTERVAL);
+ delay = g_settings_get_uint (settings, KEY_DELAY);
click_volume = g_settings_get_int (settings, KEY_CLICK_VOLUME);
bell_pitch = g_settings_get_int (settings, KEY_BELL_PITCH);
bell_duration = g_settings_get_int (settings, KEY_BELL_DURATION);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]