[frogr/frogr-0.6.x: 3/9] Create the license type combo box when using GTK+ < 2.24
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr/frogr-0.6.x: 3/9] Create the license type combo box when using GTK+ < 2.24
- Date: Fri, 19 Aug 2011 13:39:09 +0000 (UTC)
commit dcba9aa741fda31be28cb9f677ee6ca8d495f901
Author: Alberto Garcia <agarcia igalia com>
Date: Sat Aug 13 13:47:09 2011 +0300
Create the license type combo box when using GTK+ < 2.24
src/frogr-details-dialog.c | 1 +
src/frogr-settings-dialog.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/frogr-details-dialog.c b/src/frogr-details-dialog.c
index db2117f..82c5ad1 100644
--- a/src/frogr-details-dialog.c
+++ b/src/frogr-details-dialog.c
@@ -371,6 +371,7 @@ _create_widgets (FrogrDetailsDialog *self)
for (i = 0; license_descriptions[i]; i++)
gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (widget), i, _(license_descriptions[i]));
#else
+ widget = gtk_combo_box_new_text ();
for (i = 0; license_descriptions[i]; i++)
gtk_combo_box_insert_text (GTK_COMBO_BOX (widget), i, _(license_descriptions[i]));
#endif
diff --git a/src/frogr-settings-dialog.c b/src/frogr-settings-dialog.c
index 2b19623..1b669f2 100644
--- a/src/frogr-settings-dialog.c
+++ b/src/frogr-settings-dialog.c
@@ -303,6 +303,7 @@ _add_general_page (FrogrSettingsDialog *self, GtkNotebook *notebook)
for (i = 0; license_descriptions[i]; i++)
gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combo), i, _(license_descriptions[i]));
#else
+ widget = gtk_combo_box_new_text ();
for (i = 0; license_descriptions[i]; i++)
gtk_combo_box_insert_text (GTK_COMBO_BOX (combo), i, _(license_descriptions[i]));
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]