summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-11-29 20:26:28 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-11-29 20:26:28 -0500
commitdfd194a5fafad19e7f13bfcacd5cd960f8d0b229 (patch)
tree17cd383c763fbdf0643e9e401cb2facea419d5a8
parentc750c0e57161cf54cbba8883a7a84aa5c770ed47 (diff)
downloadgtk+-dfd194a5fafad19e7f13bfcacd5cd960f8d0b229.tar.gz
Drop gtk_cell_view_new_with_pixbuf
We have a texture-based alternative for this now.
-rw-r--r--docs/reference/gtk/gtk4-sections.txt1
-rw-r--r--gtk/gtkcellview.c32
-rw-r--r--gtk/gtkcellview.h2
3 files changed, 0 insertions, 35 deletions
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index b3da2cb1b7..a408a813f2 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -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
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index a5482e39be..7397515249 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -912,38 +912,6 @@ gtk_cell_view_new_with_markup (const gchar *markup)
}
/**
- * 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
*
diff --git a/gtk/gtkcellview.h b/gtk/gtkcellview.h
index 4e6a0682bf..8a0efb2c33 100644
--- a/gtk/gtkcellview.h
+++ b/gtk/gtkcellview.h
@@ -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