[evince] shell: Use gtk_widget_render_icon_pixbuf() in EvSidebarAnnotations



commit 0b3d1902059923fbea333ea7a889066308ee349c
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Wed Dec 22 17:34:59 2010 +0100

    shell: Use gtk_widget_render_icon_pixbuf() in EvSidebarAnnotations

 shell/ev-sidebar-annotations.c |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/shell/ev-sidebar-annotations.c b/shell/ev-sidebar-annotations.c
index ec544fa..787c9fb 100644
--- a/shell/ev-sidebar-annotations.c
+++ b/shell/ev-sidebar-annotations.c
@@ -425,18 +425,16 @@ job_finished_callback (EvJobAnnots          *job,
 			if (EV_IS_ANNOTATION_TEXT (annot)) {
 				if (!text_icon) {
 					/* FIXME: use a better icon than EDIT */
-					text_icon = gtk_widget_render_icon (priv->tree_view,
-									    GTK_STOCK_EDIT,
-									    GTK_ICON_SIZE_BUTTON,
-									    NULL);
+					text_icon = gtk_widget_render_icon_pixbuf (priv->tree_view,
+                                                                                   GTK_STOCK_EDIT,
+                                                                                   GTK_ICON_SIZE_BUTTON);
 				}
 				pixbuf = text_icon;
 			} else if (EV_IS_ANNOTATION_ATTACHMENT (annot)) {
 				if (!attachment_icon) {
-					attachment_icon = gtk_widget_render_icon (priv->tree_view,
-										  EV_STOCK_ATTACHMENT,
-										  GTK_ICON_SIZE_BUTTON,
-										  NULL);
+					attachment_icon = gtk_widget_render_icon_pixbuf (priv->tree_view,
+                                                                                         EV_STOCK_ATTACHMENT,
+                                                                                         GTK_ICON_SIZE_BUTTON);
 				}
 				pixbuf = attachment_icon;
 			}



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