diff options
author | Sergey V. Udaltsov <svu@gnome.org> | 2009-06-29 00:56:35 +0100 |
---|---|---|
committer | Sergey V. Udaltsov <svu@gnome.org> | 2009-06-29 00:56:35 +0100 |
commit | 3b40029262b0007db0d3cb07b0ef658a391063aa (patch) | |
tree | e81c4769b354ee2861508f95fd0af4f088f52438 /libgnomekbd/gkbd-indicator.c | |
parent | ee9f91cae3772bdf3f5b2f6b7ce515ca8704a105 (diff) | |
download | libgnomekbd-3b40029262b0007db0d3cb07b0ef658a391063aa.tar.gz |
Optional loading of extras, using libxklavier 4.0
Now, xkeyboard-config has separate section for exotic layouts.
libxklavier 4.0 supports that feature. Now, it is configurable through
gconf
Diffstat (limited to 'libgnomekbd/gkbd-indicator.c')
-rw-r--r-- | libgnomekbd/gkbd-indicator.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libgnomekbd/gkbd-indicator.c b/libgnomekbd/gkbd-indicator.c index 48b59cb..0b43f85 100644 --- a/libgnomekbd/gkbd-indicator.c +++ b/libgnomekbd/gkbd-indicator.c @@ -714,11 +714,6 @@ gkbd_indicator_global_init (void) return; } - globals.registry = - xkl_config_registry_get_instance (globals.engine); - - xkl_config_registry_load (globals.registry); - gconf_client = gconf_client_get_default (); g_signal_connect (globals.engine, "X-state-changed", @@ -742,8 +737,14 @@ gkbd_indicator_global_init (void) gkbd_desktop_config_load_from_gconf (&globals.cfg); gkbd_desktop_config_activate (&globals.cfg); + + globals.registry = + xkl_config_registry_get_instance (globals.engine); + xkl_config_registry_load (globals.registry, globals.cfg.load_extra_items); + gkbd_keyboard_config_load_from_x_current (&globals.kbd_cfg, xklrec); + gkbd_indicator_config_load_from_gconf (&globals.ind_cfg); gkbd_indicator_config_update_images (&globals.ind_cfg, &globals.kbd_cfg); |