diff options
author | Stefano Karapetsas <[email protected]> | 2012-11-07 17:41:04 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-11-07 17:41:04 +0100 |
commit | b73df84c7cde202707fb740a0c266fe7d4a29794 (patch) | |
tree | e56072c1d0fbc11cd7d5422bf5d0d33ca1a66255 /gst-mixer/src/preferences.h | |
parent | a2fac276568d29592db30e422b733d93d5d6e466 (diff) | |
download | mate-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/preferences.h')
-rw-r--r-- | gst-mixer/src/preferences.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gst-mixer/src/preferences.h b/gst-mixer/src/preferences.h index d9850f4..ad43bb1 100644 --- a/gst-mixer/src/preferences.h +++ b/gst-mixer/src/preferences.h @@ -24,7 +24,7 @@ #include <glib.h> #include <gtk/gtk.h> -#include <mateconf/mateconf-client.h> +#include <gio/gio.h> #include <gst/interfaces/mixer.h> G_BEGIN_DECLS @@ -48,9 +48,8 @@ typedef struct _MateVolumeControlPreferences { /* current element that we're working on */ GstMixer *mixer; - /* mateconf client inherited from our parent */ - MateConfClient *client; - guint client_cnxn; + /* gsettings */ + GSettings *settings; /* treeview inside us */ GtkWidget *treeview; @@ -61,15 +60,14 @@ typedef struct _MateVolumeControlPreferencesClass { } MateVolumeControlPreferencesClass; GType mate_volume_control_preferences_get_type (void); -GtkWidget *mate_volume_control_preferences_new (GstElement *element, - MateConfClient *client); +GtkWidget *mate_volume_control_preferences_new (GstElement *element); void mate_volume_control_preferences_change (MateVolumeControlPreferences *prefs, GstElement *element); /* - * MateConf thingy. Escapes spaces and such. + * GSettings thingy. Escapes spaces and such. */ -gchar * get_mateconf_key (GstMixer *mixer, GstMixerTrack *track); +gchar * get_gsettings_name (GstMixer *mixer, GstMixerTrack *track); G_END_DECLS |