From 64c176af81eb133ecdd13ca54e5c3dba657806ad Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Mon, 20 Jan 2014 16:17:02 +0100 Subject: gst-mixer: Add GTK3 support Bump minimum GTK2 version to use GtkComboBoxText for both GTK versions --- gst-mixer/src/track.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gst-mixer/src/track.c') 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); -- cgit v1.2.1