summaryrefslogtreecommitdiff
path: root/gst-mixer/src/track.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-20 16:17:02 +0100
committerStefano Karapetsas <[email protected]>2014-01-20 16:17:02 +0100
commit64c176af81eb133ecdd13ca54e5c3dba657806ad (patch)
treeb2816472eb9034f469ae59096f3118525ce4aedf /gst-mixer/src/track.c
parent89df05d618d097c98d0586c67e9d8fb9ae402cb6 (diff)
downloadmate-media-64c176af81eb133ecdd13ca54e5c3dba657806ad.tar.bz2
mate-media-64c176af81eb133ecdd13ca54e5c3dba657806ad.tar.xz
gst-mixer: Add GTK3 support
Bump minimum GTK2 version to use GtkComboBoxText for both GTK versions
Diffstat (limited to 'gst-mixer/src/track.c')
-rw-r--r--gst-mixer/src/track.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst-mixer/src/track.c b/gst-mixer/src/track.c
index 2eb13cc..1861cfd 100644
--- a/gst-mixer/src/track.c
+++ b/gst-mixer/src/track.c
@@ -116,7 +116,7 @@ cb_option_changed (GtkComboBox *box,
MateVolumeControlTrack *ctrl = data;
gchar *opt;
- opt = gtk_combo_box_get_active_text (box);
+ opt = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (box));
if (opt)
gst_mixer_set_option (ctrl->mixer, GST_MIXER_OPTIONS (ctrl->track), opt);
g_free (opt);
@@ -542,13 +542,13 @@ mate_volume_control_track_add_option (GtkTable *table,
/* optionmenu */
active_opt = gst_mixer_get_option (mixer, options);
if (active_opt != NULL) {
- ctrl->options = gtk_combo_box_new_text ();
+ ctrl->options = gtk_combo_box_text_new ();
opts = gst_mixer_options_get_values (options);
for (opt = opts; opt != NULL; opt = opt->next, i++) {
if (opt->data == NULL)
continue;
- gtk_combo_box_append_text (GTK_COMBO_BOX (ctrl->options), opt->data);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (ctrl->options), opt->data);
if (g_str_equal (active_opt, opt->data)) {
gtk_combo_box_set_active (GTK_COMBO_BOX (ctrl->options), i);