[evince/more-gtk3-api-changes: 1/4] libview: Use new combo box text APIs



commit 41ab57477960b3a303f1f677d34c3f603470594e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 24 21:08:45 2010 +0200

    libview: Use new combo box text APIs

 libview/ev-print-operation.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libview/ev-print-operation.c b/libview/ev-print-operation.c
index d14c9e7..04e327d 100644
--- a/libview/ev-print-operation.c
+++ b/libview/ev-print-operation.c
@@ -1861,10 +1861,10 @@ ev_print_operation_print_create_custom_widget (EvPrintOperationPrint *print,
 	gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, 0, 0, 0);
 	gtk_widget_show (label);
 
-	print->scale_combo = gtk_combo_box_new_text ();
-	gtk_combo_box_append_text (GTK_COMBO_BOX (print->scale_combo), _("None"));
-	gtk_combo_box_append_text (GTK_COMBO_BOX (print->scale_combo), _("Shrink to Printable Area"));
-	gtk_combo_box_append_text (GTK_COMBO_BOX (print->scale_combo), _("Fit to Printable Area"));
+	print->scale_combo = gtk_combo_box_text_new ();
+	gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (print->scale_combo), _("None"));
+	gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (print->scale_combo), _("Shrink to Printable Area"));
+	gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (print->scale_combo), _("Fit to Printable Area"));
 	gtk_combo_box_set_active (GTK_COMBO_BOX (print->scale_combo), page_scale);
 	gtk_widget_set_tooltip_text (print->scale_combo,
 		_("Scale document pages to fit the selected printer page. Select from one of the following:\n"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]