[gnome-media] Handle combo box text api going away



commit 7a1a686f4100de1e337fd7b2dc391485fc7e9178
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Oct 21 15:09:22 2010 +0100

    Handle combo box text api going away
    
    https://bugzilla.gnome.org/show_bug.cgi?id=632649

 grecord/src/gsr-window.c |    4 ++--
 gst-mixer/src/track.c    |    4 ++--
 gst-mixer/src/window.c   |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/grecord/src/gsr-window.c b/grecord/src/gsr-window.c
index 7d0e1e4..4e6804f 100644
--- a/grecord/src/gsr-window.c
+++ b/grecord/src/gsr-window.c
@@ -1918,7 +1918,7 @@ fill_record_input (GSRWindow *window, gchar *selected)
 		if (t->label == NULL)
 			continue;
 		if (t->flags & GST_MIXER_TRACK_INPUT) {
-			gtk_combo_box_append_text (GTK_COMBO_BOX (window->priv->input), t->label);
+			gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (window->priv->input), t->label);
 			++i;
 		}
 		if (t->flags & GST_MIXER_TRACK_RECORD) {
@@ -2361,7 +2361,7 @@ gsr_window_init (GSRWindow *window)
 	gtk_misc_set_alignment (GTK_MISC (priv->input_label), 0, 0.5);
 	gtk_box_pack_start (GTK_BOX (hbox), priv->input_label, FALSE, FALSE, 0);
 
-	priv->input = gtk_combo_box_new_text ();
+	priv->input = gtk_combo_box_text_new ();
 	gtk_label_set_mnemonic_widget (GTK_LABEL (priv->input_label), priv->input);
 	gtk_box_pack_start (GTK_BOX (hbox), priv->input, TRUE, TRUE, 0);
 
diff --git a/gst-mixer/src/track.c b/gst-mixer/src/track.c
index 9aa0af7..ba2962f 100644
--- a/gst-mixer/src/track.c
+++ b/gst-mixer/src/track.c
@@ -542,13 +542,13 @@ gnome_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);
diff --git a/gst-mixer/src/window.c b/gst-mixer/src/window.c
index 4057736..ea4815a 100644
--- a/gst-mixer/src/window.c
+++ b/gst-mixer/src/window.c
@@ -349,7 +349,7 @@ gnome_volume_control_window_new (GList *elements)
   }
   active_element_num = count;
 
-  combo_box = gtk_combo_box_new_text ();
+  combo_box = gtk_combo_box_text_new ();
   renderer = gtk_cell_renderer_text_new ();
   g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
   gtk_cell_layout_clear (GTK_CELL_LAYOUT (combo_box));
@@ -359,7 +359,7 @@ gnome_volume_control_window_new (GList *elements)
     const gchar *name;
 
     name = g_object_get_data (item->data, "gnome-volume-control-name");
-    gtk_combo_box_append_text(GTK_COMBO_BOX (combo_box), name);
+    gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT (combo_box), name);
   }
   gtk_combo_box_set_active (GTK_COMBO_BOX (combo_box), active_element_num);
   g_signal_connect (combo_box, "changed", G_CALLBACK (cb_change), win);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]