[gtk+] GtkCellRendererPixbuf: Use gtk_widget_render_icon_pixbuf()
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkCellRendererPixbuf: Use gtk_widget_render_icon_pixbuf()
- Date: Wed, 8 Dec 2010 16:18:25 +0000 (UTC)
commit 24e832187f739ed10035abfda83773568878a6d1
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Wed Dec 8 17:16:02 2010 +0100
GtkCellRendererPixbuf: Use gtk_widget_render_icon_pixbuf()
Instead of gtk_widget_render_icon() which is now deprecated.
gtk/gtkcellrendererpixbuf.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 729d08a..8a191d9 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -481,10 +481,9 @@ gtk_cell_renderer_pixbuf_create_stock_pixbuf (GtkCellRendererPixbuf *cellpixbuf,
if (priv->pixbuf)
g_object_unref (priv->pixbuf);
- priv->pixbuf = gtk_widget_render_icon (widget,
- priv->stock_id,
- priv->stock_size,
- priv->stock_detail);
+ priv->pixbuf = gtk_widget_render_icon_pixbuf (widget,
+ priv->stock_id,
+ priv->stock_size);
g_object_notify (G_OBJECT (cellpixbuf), "pixbuf");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]