[vinagre] No more gtk_combo_box_append_text()



commit ff85a4f64e03ddd8eae5799b1877f7a0bd05e7c1
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 9 09:48:44 2011 -0500

    No more gtk_combo_box_append_text()
    
    This has been replaced by the GtkComboBoxText class.

 plugins/vnc/vinagre-vnc-plugin.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plugins/vnc/vinagre-vnc-plugin.c b/plugins/vnc/vinagre-vnc-plugin.c
index 89b0ad0..e0c2fc5 100644
--- a/plugins/vnc/vinagre-vnc-plugin.c
+++ b/plugins/vnc/vinagre-vnc-plugin.c
@@ -310,12 +310,12 @@ impl_get_connect_widget (VinagreProtocol *plugin, VinagreConnection *conn)
   gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
   gtk_box_pack_start (GTK_BOX (box2), GTK_WIDGET (label), FALSE, FALSE, 0);
 
-  combo = gtk_combo_box_new_text ();
-  gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("Use Server Settings"));
-  gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("True Color (24 bits)"));
-  gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("High Color (16 bits)"));
-  gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("Low Color (8 bits)"));
-  gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("Ultra Low Color (3 bits)"));
+  combo = gtk_combo_box_text_new ();
+  gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("Use Server Settings"));
+  gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("True Color (24 bits)"));
+  gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("High Color (16 bits)"));
+  gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("Low Color (8 bits)"));
+  gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("Ultra Low Color (3 bits)"));
   gtk_combo_box_set_active (GTK_COMBO_BOX (combo),
 			    has_conn ? vinagre_vnc_connection_get_depth_profile (VINAGRE_VNC_CONNECTION (conn))
 			    : vinagre_cache_prefs_get_integer ("vnc-connection", "depth-profile", 0));



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