From d51132e5846d93d15a9a35e4b2cbade1008078fb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 16 Jun 2009 11:27:06 -0400 Subject: [PATCH] Don't use deprecated api internally --- gtk/gtkcombobox.c | 2 +- gtk/gtkentrycompletion.c | 2 +- gtk/gtkfilechooserdefault.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 555418a19f..30545f6131 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -1695,7 +1695,7 @@ cell_view_is_sensitive (GtkCellView *cell_view) GList *cells, *list; gboolean sensitive; - cells = gtk_cell_view_get_cell_renderers (cell_view); + cells = gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (cell_view)); sensitive = FALSE; for (list = cells; list; list = list->next) diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index e2e01426ef..cb02c5aac3 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -758,7 +758,7 @@ gtk_entry_completion_get_cells (GtkCellLayout *cell_layout) priv = GTK_ENTRY_COMPLETION_GET_PRIVATE (cell_layout); - return gtk_tree_view_column_get_cell_renderers (priv->column); + return gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (priv->column)); } /* all those callbacks */ diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 22836c14aa..7dc98676e4 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -3707,7 +3707,7 @@ rename_selected_bookmark (GtkFileChooserDefault *impl) { path = gtk_tree_model_get_path (GTK_TREE_MODEL (impl->shortcuts_model), &iter); column = gtk_tree_view_get_column (GTK_TREE_VIEW (impl->browse_shortcuts_tree_view), 0); - renderers = gtk_tree_view_column_get_cell_renderers (column); + renderers = gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (column)); cell = g_list_nth_data (renderers, 1); g_list_free (renderers); g_object_set (cell, "editable", TRUE, NULL);