[gthumb: 14/20] removed use of deprecated gtk_combo_box API



commit 90575fb483cb3072a1a44fe1a5ec205d976b3931
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu May 12 13:10:02 2011 +0200

    removed use of deprecated gtk_combo_box API

 extensions/file_tools/gth-file-tool-crop.c |    2 +-
 extensions/flicker/dlg-export-to-flickr.c  |    2 +-
 gthumb/gth-test-category.c                 |    2 +-
 gthumb/gth-time-selector.c                 |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/extensions/file_tools/gth-file-tool-crop.c b/extensions/file_tools/gth-file-tool-crop.c
index 0bb939f..2fde58d 100644
--- a/extensions/file_tools/gth-file-tool-crop.c
+++ b/extensions/file_tools/gth-file-tool-crop.c
@@ -426,7 +426,7 @@ gth_file_tool_crop_get_options (GthFileTool *base)
 	text = g_strdup_printf (_("%d x %d (Screen)"), self->priv->screen_width, self->priv->screen_height);
 	gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (self->priv->ratio_combobox), text);
 	g_free (text);
-	_gtk_combo_box_text_append_texts (GTK_COMBO_BOX_TEXT (self->priv->ratio_combobox),
+	_gtk_combo_box_append_texts (GTK_COMBO_BOX_TEXT (self->priv->ratio_combobox),
 				     _("5:4"),
 				     _("4:3 (DVD, Book)"),
 				     _("7:5"),
diff --git a/extensions/flicker/dlg-export-to-flickr.c b/extensions/flicker/dlg-export-to-flickr.c
index 3cff2f5..c68e182 100644
--- a/extensions/flicker/dlg-export-to-flickr.c
+++ b/extensions/flicker/dlg-export-to-flickr.c
@@ -301,7 +301,7 @@ export_dialog_response_cb (GtkDialog *dialog,
 			gth_task_dialog (GTH_TASK (data->conn), FALSE, NULL);
 
 			data->photoset = NULL;
-			photoset_title = gtk_combo_box_get_active_text (GTK_COMBO_BOX (GET_WIDGET ("photoset_comboboxentry")));
+			photoset_title = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (GET_WIDGET ("photoset_comboboxentry")));
 			if ((photoset_title != NULL) && (g_strcmp0 (photoset_title, "") != 0)) {
 				GList *link;
 
diff --git a/gthumb/gth-test-category.c b/gthumb/gth-test-category.c
index debf061..776257d 100644
--- a/gthumb/gth-test-category.c
+++ b/gthumb/gth-test-category.c
@@ -199,7 +199,7 @@ gth_test_category_real_create_control (GthTest *base)
 	/* text entry */
 
 	test->priv->tag_store = gtk_list_store_new (1, G_TYPE_STRING);
-	test->priv->combo_entry = gtk_combo_box_entry_new_with_model (GTK_TREE_MODEL (test->priv->tag_store), 0);
+	test->priv->combo_entry = gtk_combo_box_new_with_model_and_entry (GTK_TREE_MODEL (test->priv->tag_store));
 	g_object_unref (test->priv->tag_store);
 	update_tag_list (test);
 
diff --git a/gthumb/gth-time-selector.c b/gthumb/gth-time-selector.c
index c0f7b3a..b41e55d 100644
--- a/gthumb/gth-time-selector.c
+++ b/gthumb/gth-time-selector.c
@@ -492,7 +492,7 @@ gth_time_selector_construct (GthTimeSelector *self)
 	gtk_widget_show (self->priv->use_time_checkbutton);
 	gtk_box_pack_start (GTK_BOX (time_box), self->priv->use_time_checkbutton, FALSE, FALSE, 0);
 
-	self->priv->time_combo_box = gtk_combo_box_entry_new_text ();
+	self->priv->time_combo_box = gtk_combo_box_text_new_with_entry ();
 	gtk_entry_set_width_chars (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (self->priv->time_combo_box))), 10);
 	gtk_widget_show (self->priv->time_combo_box);
 	gtk_box_pack_start (GTK_BOX (time_box), self->priv->time_combo_box, FALSE, FALSE, 0);



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