]> www.fi.muni.cz Git - evince.git/commitdiff
shell: Use gtk_widget_render_icon_pixbuf() in EvSidebarAnnotations
authorCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 22 Dec 2010 16:34:59 +0000 (17:34 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 23 Dec 2010 18:13:26 +0000 (19:13 +0100)
shell/ev-sidebar-annotations.c

index ec544fa57368ea62ae80b958d25b48d66df791ed..787c9fb31d6010ace37bd8b17baa36655059430f 100644 (file)
@@ -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;
                        }