[gnome-games] libgames-support: Port to new combo box text API
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] libgames-support: Port to new combo box text API
- Date: Wed, 20 Oct 2010 12:31:11 +0000 (UTC)
commit c2896675cc18054978adbd367653b40f3d6f0b97
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 20 14:27:22 2010 +0200
libgames-support: Port to new combo box text API
libgames-support/games-files.c | 4 ++--
libgames-support/games-scores-dialog.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgames-support/games-files.c b/libgames-support/games-files.c
index 473f7bf..09e7589 100644
--- a/libgames-support/games-files.c
+++ b/libgames-support/games-files.c
@@ -302,7 +302,7 @@ games_file_list_create_widget (GamesFileList * gamesfilelist,
GList *filelist = gamesfilelist->list;
gboolean found = FALSE;
- widget = GTK_COMBO_BOX (gtk_combo_box_new_text ());
+ widget = GTK_COMBO_BOX (gtk_combo_box_text_new ());
itemno = 0;
while (filelist) {
@@ -328,7 +328,7 @@ games_file_list_create_widget (GamesFileList * gamesfilelist,
}
}
- gtk_combo_box_append_text (widget, visible);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), visible);
if (selection && (!strcmp (string, selection))) {
gtk_combo_box_set_active (widget, itemno);
found = TRUE;
diff --git a/libgames-support/games-scores-dialog.c b/libgames-support/games-scores-dialog.c
index 9d7403b..8ce1070 100644
--- a/libgames-support/games-scores-dialog.c
+++ b/libgames-support/games-scores-dialog.c
@@ -78,7 +78,7 @@ static void games_scores_dialog_add_category (GamesScoresDialog *self,
GINT_TO_POINTER (self->_priv->catcounter),
k);
self->_priv->catcounter++;
- gtk_combo_box_append_text (GTK_COMBO_BOX (self->_priv->combo), name);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (self->_priv->combo), name);
}
/* This is a helper function for loading the initial list of categories
@@ -510,7 +510,7 @@ static void games_scores_dialog_init (GamesScoresDialog *self)
gtk_box_pack_start (GTK_BOX (self->_priv->catbar), self->_priv->label,
FALSE, FALSE, 0);
- self->_priv->combo = gtk_combo_box_new_text ();
+ self->_priv->combo = gtk_combo_box_text_new ();
gtk_combo_box_set_focus_on_click (GTK_COMBO_BOX (self->_priv->combo), FALSE);
gtk_box_pack_start (GTK_BOX (self->_priv->catbar),
self->_priv->combo, TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]