[gtk+] Drop gtk_cell_view_new_with_pixbuf
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Drop gtk_cell_view_new_with_pixbuf
- Date: Thu, 30 Nov 2017 01:26:56 +0000 (UTC)
commit dfd194a5fafad19e7f13bfcacd5cd960f8d0b229
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Nov 29 20:26:28 2017 -0500
Drop gtk_cell_view_new_with_pixbuf
We have a texture-based alternative for this now.
docs/reference/gtk/gtk4-sections.txt | 1 -
gtk/gtkcellview.c | 32 --------------------------------
gtk/gtkcellview.h | 2 --
3 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index b3da2cb..a408a81 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 a5482e3..7397515 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 4e6a068..8a0efb2 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]