[gnome-games] gnibbles: Port to new combo box text API
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] gnibbles: Port to new combo box text API
- Date: Wed, 20 Oct 2010 12:31:36 +0000 (UTC)
commit c8b3d6a1b0f652b9806e39c5d73f36acd7275779
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 20 14:28:32 2010 +0200
gnibbles: Port to new combo box text API
gnibbles/preferences.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gnibbles/preferences.c b/gnibbles/preferences.c
index 976bfae..cc21658 100644
--- a/gnibbles/preferences.c
+++ b/gnibbles/preferences.c
@@ -468,15 +468,15 @@ gnibbles_preferences_cb (GtkWidget * widget, gpointer data)
gtk_misc_set_alignment (GTK_MISC (label2), 0, 0.5);
gtk_table_attach (GTK_TABLE (table2), label2, 0, 1, 0, 1, 0, 0, 0, 0);
- omenu = gtk_combo_box_new_text ();
+ omenu = gtk_combo_box_text_new ();
gtk_label_set_mnemonic_widget (GTK_LABEL (label2), omenu);
- gtk_combo_box_append_text (GTK_COMBO_BOX (omenu), _("Red"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (omenu), _("Green"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (omenu), _("Blue"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (omenu), _("Yellow"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (omenu), _("Cyan"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (omenu), _("Purple"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (omenu), _("Gray"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (omenu), _("Red"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (omenu), _("Green"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (omenu), _("Blue"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (omenu), _("Yellow"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (omenu), _("Cyan"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (omenu), _("Purple"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (omenu), _("Gray"));
g_signal_connect (GTK_OBJECT (omenu), "changed",
G_CALLBACK (set_worm_color_cb),
GINT_TO_POINTER (i));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]