[gtksourceview] Use gtk_widget_render_icon_pixbuf() in pixbuf helper.



commit c01295ccbcdc79168745c72f960da6688d8efb81
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Wed Dec 8 22:29:30 2010 +0100

    Use gtk_widget_render_icon_pixbuf() in pixbuf helper.

 gtksourceview/gtksourcepixbufhelper.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview/gtksourcepixbufhelper.c b/gtksourceview/gtksourcepixbufhelper.c
index 6c5413b..c62ade5 100644
--- a/gtksourceview/gtksourcepixbufhelper.c
+++ b/gtksourceview/gtksourcepixbufhelper.c
@@ -259,10 +259,9 @@ from_stock (GtkSourcePixbufHelper *helper,
 
 	g_free (name);
 
-	set_cache (helper, gtk_widget_render_icon (widget,
-	                                           helper->stock_id,
-	                                           icon_size,
-	                                           helper->stock_detail));
+	set_cache (helper, gtk_widget_render_icon_pixbuf (widget,
+	                                                  helper->stock_id,
+	                                                  icon_size));
 }
 static void
 from_gicon (GtkSourcePixbufHelper *helper,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]