From 3bb2d6c2e4c434cd7852eddfac5256ad807f4da4 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Thu, 25 Oct 2012 00:38:52 +0200 Subject: migrate keyboard applet to gsettings --- capplets/keyboard/mate-keyboard-properties-xkbmc.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'capplets/keyboard/mate-keyboard-properties-xkbmc.c') 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 -#include +#include #include #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); -- cgit v1.2.1