[gnome-settings-daemon/wip/input-sources: 3/6] keyboard: Use g_settings_get_uint now that it is available
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/input-sources: 3/6] keyboard: Use g_settings_get_uint now that it is available
- Date: Mon, 23 Apr 2012 21:12:09 +0000 (UTC)
commit 31ec5f5fe46917de5d1a8fd1c3ea05f0da3f89b2
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Apr 16 17:44:58 2012 +0200
keyboard: Use g_settings_get_uint now that it is available
plugins/keyboard/gsd-keyboard-manager.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-manager.c b/plugins/keyboard/gsd-keyboard-manager.c
index c507f3f..dee14ed 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -181,15 +181,7 @@ 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,
@@ -210,8 +202,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]