Replace deprecated widget_render_icon function in print-check

This commit is contained in:
Robert Fewell 2017-06-24 11:06:47 +01:00
parent 8a2d6c4bcb
commit 4d61403037

View File

@ -1936,9 +1936,8 @@ draw_picture(GtkPrintContext *context, check_item_t *data)
{
g_warning("Filename '%s' cannot be read or understood.",
data->filename);
pixbuf = gtk_widget_render_icon(GTK_WIDGET(image),
GTK_STOCK_MISSING_IMAGE,
-1, NULL);
pixbuf = gtk_widget_render_icon_pixbuf (GTK_WIDGET(image),
GTK_STOCK_MISSING_IMAGE, -1);
}
pix_w = gdk_pixbuf_get_width(pixbuf);
pix_h = gdk_pixbuf_get_height(pixbuf);