Drop gtk_cell_view_new_with_pixbuf

We have a texture-based alternative for this now.
This commit is contained in:
Matthias Clasen 2017-11-29 20:26:28 -05:00
parent c750c0e571
commit dfd194a5fa
3 changed files with 0 additions and 35 deletions

View File

@ -3982,7 +3982,6 @@ gtk_cell_view_new
gtk_cell_view_new_with_context
gtk_cell_view_new_with_text
gtk_cell_view_new_with_markup
gtk_cell_view_new_with_pixbuf
gtk_cell_view_new_with_texture
gtk_cell_view_set_model
gtk_cell_view_get_model

View File

@ -911,38 +911,6 @@ gtk_cell_view_new_with_markup (const gchar *markup)
return GTK_WIDGET (cellview);
}
/**
* gtk_cell_view_new_with_pixbuf:
* @pixbuf: the image to display in the cell view
*
* Creates a new #GtkCellView widget, adds a #GtkCellRendererPixbuf
* to it, and makes it show @pixbuf.
*
* Returns: A newly created #GtkCellView widget.
*
* Since: 2.6
*/
GtkWidget *
gtk_cell_view_new_with_pixbuf (GdkPixbuf *pixbuf)
{
GtkCellView *cellview;
GtkCellRenderer *renderer;
GValue value = G_VALUE_INIT;
cellview = GTK_CELL_VIEW (gtk_cell_view_new ());
renderer = gtk_cell_renderer_pixbuf_new ();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (cellview),
renderer, TRUE);
g_value_init (&value, GDK_TYPE_PIXBUF);
g_value_set_object (&value, pixbuf);
gtk_cell_view_set_value (cellview, renderer, "pixbuf", &value);
g_value_unset (&value);
return GTK_WIDGET (cellview);
}
/**
* gtk_cell_view_new_with_texture:
* @texture: the image to display in the cell view

View File

@ -77,8 +77,6 @@ GDK_AVAILABLE_IN_ALL
GtkWidget *gtk_cell_view_new_with_text (const gchar *text);
GDK_AVAILABLE_IN_ALL
GtkWidget *gtk_cell_view_new_with_markup (const gchar *markup);
GDK_AVAILABLE_IN_ALL
GtkWidget *gtk_cell_view_new_with_pixbuf (GdkPixbuf *pixbuf);
GDK_AVAILABLE_IN_3_94
GtkWidget *gtk_cell_view_new_with_texture (GdkTexture *texture);
GDK_AVAILABLE_IN_ALL