summaryrefslogtreecommitdiff
path: root/plugins/keyboard
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-05-08 17:54:28 +0200
committerStefano Karapetsas <[email protected]>2013-05-08 17:54:28 +0200
commita326673b17ec87689e71a33c8b50fdc226de07e3 (patch)
tree60f9e842443433c6f4e38be24abf120febefb52f /plugins/keyboard
parent33ac2c8e15a6dbf22982fd469af1446d210eb2c8 (diff)
downloadmate-settings-daemon-a326673b17ec87689e71a33c8b50fdc226de07e3.tar.bz2
mate-settings-daemon-a326673b17ec87689e71a33c8b50fdc226de07e3.tar.xz
keyboard: Allow to disable indicators in GSettings
Diffstat (limited to 'plugins/keyboard')
-rw-r--r--plugins/keyboard/msd-keyboard-xkb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/keyboard/msd-keyboard-xkb.c b/plugins/keyboard/msd-keyboard-xkb.c
index d37ea05..5ce70bb 100644
--- a/plugins/keyboard/msd-keyboard-xkb.c
+++ b/plugins/keyboard/msd-keyboard-xkb.c
@@ -47,6 +47,8 @@
#define MATEKBD_KBD_SCHEMA "org.mate.peripherals-keyboard-xkb.kbd"
#define KNOWN_FILES_KEY "known-file-list"
+#define DISABLE_INDICATOR_KEY "disable-indicator"
+#define DUPLICATE_LEDS_KEY "duplicate-leds"
static MsdKeyboardManager* manager = NULL;
@@ -173,8 +175,7 @@ apply_desktop_settings (void)
before activating them */
matekbd_desktop_config_activate (&current_config);
- /* FIXME add an option to GSettings to duplicate leds? */
- show_leds = FALSE;
+ show_leds = g_settings_get_boolean (settings_desktop, DUPLICATE_LEDS_KEY);
for (i = sizeof (indicator_icons) / sizeof (indicator_icons[0]);
--i >= 0;) {
gtk_status_icon_set_visible (indicator_icons[i],
@@ -354,8 +355,7 @@ show_hide_icon ()
{
if (g_strv_length (current_kbd_config.layouts_variants) > 1) {
if (icon == NULL) {
- /* FIXME add an option to GSettings to disable this? */
- gboolean disable = FALSE;
+ gboolean disable = g_settings_get_boolean (settings_desktop, DISABLE_INDICATOR_KEY);
if (disable)
return;