summaryrefslogtreecommitdiff
path: root/capplets/keyboard/mate-keyboard-properties-xkbmc.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-10-25 00:38:52 +0200
committerStefano Karapetsas <[email protected]>2012-10-25 00:38:52 +0200
commit3bb2d6c2e4c434cd7852eddfac5256ad807f4da4 (patch)
tree452af6284ea78095594a297132048d316e36488b /capplets/keyboard/mate-keyboard-properties-xkbmc.c
parentfdbdbecabce4115565a3beaeeb96486e1e5fdb28 (diff)
downloadmate-control-center-3bb2d6c2e4c434cd7852eddfac5256ad807f4da4.tar.bz2
mate-control-center-3bb2d6c2e4c434cd7852eddfac5256ad807f4da4.tar.xz
migrate keyboard applet to gsettings
Diffstat (limited to 'capplets/keyboard/mate-keyboard-properties-xkbmc.c')
-rw-r--r--capplets/keyboard/mate-keyboard-properties-xkbmc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/capplets/keyboard/mate-keyboard-properties-xkbmc.c b/capplets/keyboard/mate-keyboard-properties-xkbmc.c
index baa2b848..20cd63be 100644
--- a/capplets/keyboard/mate-keyboard-properties-xkbmc.c
+++ b/capplets/keyboard/mate-keyboard-properties-xkbmc.c
@@ -26,7 +26,7 @@
#endif
#include <gdk/gdkx.h>
-#include <mateconf/mateconf-client.h>
+#include <gio/gio.h>
#include <glib/gi18n.h>
#include "capplet-util.h"
@@ -300,9 +300,7 @@ xkb_model_chooser_response (GtkDialog * dialog,
gtk_tree_model_get (list_store, &iter,
1, &model_name, -1);
- mateconf_client_set_string (xkb_mateconf_client,
- MATEKBD_KEYBOARD_CONFIG_KEY_MODEL,
- model_name, NULL);
+ g_settings_set_string (xkb_kbd_settings, "model", model_name);
g_free (model_name);
}
}
@@ -323,9 +321,7 @@ choose_model (GtkBuilder * dialog)
GTK_WINDOW (WID
("keyboard_dialog")));
current_model_name =
- mateconf_client_get_string (xkb_mateconf_client,
- MATEKBD_KEYBOARD_CONFIG_KEY_MODEL, NULL);
-
+ g_settings_get_string (xkb_kbd_settings, "model");
prepare_vendors_list (chooser_dialog);
prepare_models_list (chooser_dialog);