[gnome-games] aisleriot: Port to new combo box text API
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: Port to new combo box text API
- Date: Wed, 20 Oct 2010 12:31:41 +0000 (UTC)
commit e833ce1706782a8e79e91917681c7d890b28fe8a
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 20 14:28:43 2010 +0200
aisleriot: Port to new combo box text API
aisleriot/prop-editor.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/aisleriot/prop-editor.c b/aisleriot/prop-editor.c
index 38f60d5..f2c3c88 100644
--- a/aisleriot/prop-editor.c
+++ b/aisleriot/prop-editor.c
@@ -911,16 +911,25 @@ property_widget (GObject *object,
{
GEnumClass *eclass;
gint j;
-
+
+#if GTK_CHECK_VERSION (2, 91, 2)
+ prop_edit = gtk_combo_box_text_new ();
+#else
prop_edit = gtk_combo_box_new_text ();
+#endif
eclass = G_ENUM_CLASS (g_type_class_ref (spec->value_type));
j = 0;
while (j < eclass->n_values)
{
+#if GTK_CHECK_VERSION (2, 91, 2)
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (prop_edit),
+ eclass->values[j].value_name);
+#else
gtk_combo_box_append_text (GTK_COMBO_BOX (prop_edit),
- eclass->values[j].value_name);
+ eclass->values[j].value_name);
+#endif
++j;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]