summaryrefslogtreecommitdiff
path: root/gst-mixer/src/main.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-07 17:41:04 +0100
committerStefano Karapetsas <[email protected]>2012-11-07 17:41:04 +0100
commitb73df84c7cde202707fb740a0c266fe7d4a29794 (patch)
treee56072c1d0fbc11cd7d5422bf5d0d33ca1a66255 /gst-mixer/src/main.c
parenta2fac276568d29592db30e422b733d93d5d6e466 (diff)
downloadmate-media-b73df84c7cde202707fb740a0c266fe7d4a29794.tar.bz2
mate-media-b73df84c7cde202707fb740a0c266fe7d4a29794.tar.xz
gst-mixer: migrate to gsettings
TODO: need to add a feature to disable whitelist mixers
Diffstat (limited to 'gst-mixer/src/main.c')
-rw-r--r--gst-mixer/src/main.c12
1 files changed, 7 insertions, 5 deletions
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 <glib.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
+#include <gio/gio.h>
#include <gst/gst.h>
#include <gst/audio/mixerutils.h>
-#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