From b73df84c7cde202707fb740a0c266fe7d4a29794 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 7 Nov 2012 17:41:04 +0100 Subject: gst-mixer: migrate to gsettings TODO: need to add a feature to disable whitelist mixers --- gst-mixer/src/main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'gst-mixer/src/main.c') diff --git a/gst-mixer/src/main.c b/gst-mixer/src/main.c index f039af8..1e5e275 100644 --- a/gst-mixer/src/main.c +++ b/gst-mixer/src/main.c @@ -27,10 +27,11 @@ #include #include #include +#include #include #include -#include "keys.h" +#include "schemas.h" #include "window.h" static gchar* page = NULL; @@ -120,13 +121,14 @@ static void cb_check_resize (GtkContainer *container, gpointer user_data) { - MateConfClient *client; + GSettings *settings; gint width, height; - client = mateconf_client_get_default(); + settings = g_settings_new (MATE_VOLUME_CONTROL_SCHEMA); gtk_window_get_size (GTK_WINDOW (container), &width, &height); - mateconf_client_set_int (client, PREF_UI_WINDOW_WIDTH, width, NULL); - mateconf_client_set_int (client, PREF_UI_WINDOW_HEIGHT, height, NULL); + g_settings_set_int (settings, MATE_VOLUME_CONTROL_KEY_WINDOW_WIDTH, width); + g_settings_set_int (settings, MATE_VOLUME_CONTROL_KEY_WINDOW_HEIGHT, height); + g_object_unref (settings); } gint -- cgit v1.2.1