[eog] Handle combobox text API going away
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Handle combobox text API going away
- Date: Wed, 20 Oct 2010 16:24:14 +0000 (UTC)
commit d6cf404307d69c148a8b8f78ac0d59582882f4ff
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 20 18:21:50 2010 +0200
Handle combobox text API going away
The combobox text convenience API is replaced by a GtkComboBoxText
widget in gtk-3. Fixes bug 632608.
src/eog-print-image-setup.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/eog-print-image-setup.c b/src/eog-print-image-setup.c
index b2f6243..6f771fa 100644
--- a/src/eog-print-image-setup.c
+++ b/src/eog-print-image-setup.c
@@ -880,15 +880,15 @@ eog_print_image_setup_init (EogPrintImageSetup *setup)
label = gtk_label_new_with_mnemonic (_("C_enter:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
- combobox = gtk_combo_box_new_text ();
- gtk_combo_box_insert_text (GTK_COMBO_BOX (combobox),
- CENTER_NONE, _("None"));
- gtk_combo_box_insert_text (GTK_COMBO_BOX (combobox),
- CENTER_HORIZONTAL, _("Horizontal"));
- gtk_combo_box_insert_text (GTK_COMBO_BOX (combobox),
- CENTER_VERTICAL, _("Vertical"));
- gtk_combo_box_insert_text (GTK_COMBO_BOX (combobox),
- CENTER_BOTH, _("Both"));
+ combobox = gtk_combo_box_text_new ();
+ gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combobox),
+ CENTER_NONE, _("None"));
+ gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combobox),
+ CENTER_HORIZONTAL, _("Horizontal"));
+ gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combobox),
+ CENTER_VERTICAL, _("Vertical"));
+ gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (combobox),
+ CENTER_BOTH, _("Both"));
gtk_combo_box_set_active (GTK_COMBO_BOX (combobox), CENTER_NONE);
gtk_table_attach (GTK_TABLE (table), label,
0, 1, 2, 3, GTK_FILL, GTK_FILL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]