From a326673b17ec87689e71a33c8b50fdc226de07e3 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 8 May 2013 17:54:28 +0200 Subject: keyboard: Allow to disable indicators in GSettings --- plugins/keyboard/msd-keyboard-xkb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/keyboard/msd-keyboard-xkb.c') 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 (¤t_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; -- cgit v1.2.1