Don't use deprecated api internally

This commit is contained in:
Matthias Clasen 2009-06-16 11:27:06 -04:00
parent 09f41f5000
commit d51132e584
3 changed files with 3 additions and 3 deletions

View File

@ -1695,7 +1695,7 @@ cell_view_is_sensitive (GtkCellView *cell_view)
GList *cells, *list; GList *cells, *list;
gboolean sensitive; gboolean sensitive;
cells = gtk_cell_view_get_cell_renderers (cell_view); cells = gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (cell_view));
sensitive = FALSE; sensitive = FALSE;
for (list = cells; list; list = list->next) for (list = cells; list; list = list->next)

View File

@ -758,7 +758,7 @@ gtk_entry_completion_get_cells (GtkCellLayout *cell_layout)
priv = GTK_ENTRY_COMPLETION_GET_PRIVATE (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 */ /* all those callbacks */

View File

@ -3707,7 +3707,7 @@ rename_selected_bookmark (GtkFileChooserDefault *impl)
{ {
path = gtk_tree_model_get_path (GTK_TREE_MODEL (impl->shortcuts_model), &iter); 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); 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); cell = g_list_nth_data (renderers, 1);
g_list_free (renderers); g_list_free (renderers);
g_object_set (cell, "editable", TRUE, NULL); g_object_set (cell, "editable", TRUE, NULL);