[gthumb: 10/20] Replacing gtk_combo_box text API by gtk_combo_box_text one



commit 9e2d29223385a86a1016f0b9f721b9c508d6bd74
Author: Lincoln de Sousa <lincoln comum org>
Date:   Fri May 6 23:36:18 2011 -0300

    Replacing gtk_combo_box text API by gtk_combo_box_text one
    
    Instead of using the gtk_combo_box_new_text, that was a special constructor of
    the GtkComboBox widget, we're now using the GtkComboBoxText widget.

 gthumb/dlg-personalize-filters.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/dlg-personalize-filters.c b/gthumb/dlg-personalize-filters.c
index 066dcef..023e7f0 100644
--- a/gthumb/dlg-personalize-filters.c
+++ b/gthumb/dlg-personalize-filters.c
@@ -522,7 +522,7 @@ dlg_personalize_filters (GthBrowser *browser)
 	general_filter = eel_gconf_get_string (PREF_GENERAL_FILTER, DEFAULT_GENERAL_FILTER);
 	active_filter = 0;
 
-	data->general_filter_combobox = gtk_combo_box_new_text ();
+	data->general_filter_combobox = gtk_combo_box_text_new ();
 	for (i = 0, i_general = -1, scan = tests; scan; scan = scan->next, i++) {
 		const char *registered_test_id = scan->data;
 		GthTest    *test;
@@ -537,7 +537,7 @@ dlg_personalize_filters (GthBrowser *browser)
 
 		test = gth_main_get_registered_object (GTH_TYPE_TEST, registered_test_id);
 		data->general_tests = g_list_prepend (data->general_tests, g_strdup (gth_test_get_id (test)));
-		gtk_combo_box_append_text (GTK_COMBO_BOX (data->general_filter_combobox), gth_test_get_display_name (test));
+		gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (data->general_filter_combobox), gth_test_get_display_name (test));
 		g_object_unref (test);
 	}
 	data->general_tests = g_list_reverse (data->general_tests);



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