From 0124edc9296b9f0a942053d9f1ae1c778ca79185 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Sun, 7 Jul 2019 07:00:00 -0400 Subject: Replace gdkpixbuf with cairo_surfaces in a few more places --- src/file-manager/fm-empty-view.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/file-manager') diff --git a/src/file-manager/fm-empty-view.c b/src/file-manager/fm-empty-view.c index 9380a6b1..513c2605 100644 --- a/src/file-manager/fm-empty-view.c +++ b/src/file-manager/fm-empty-view.c @@ -59,17 +59,17 @@ fm_empty_view_add_file (FMDirectoryView *view, CajaFile *file, CajaDirectory *di static GTimer *timer = NULL; static gdouble cumu = 0, elaps; FM_EMPTY_VIEW (view)->details->number_of_files++; - GdkPixbuf *icon; + cairo_surface_t *icon; if (!timer) timer = g_timer_new (); g_timer_start (timer); - icon = caja_file_get_icon_pixbuf (file, caja_get_icon_size_for_zoom_level (CAJA_ZOOM_LEVEL_STANDARD), TRUE, 0); + icon = caja_file_get_icon_surface (file, caja_get_icon_size_for_zoom_level (CAJA_ZOOM_LEVEL_STANDARD), TRUE, 0); elaps = g_timer_elapsed (timer, NULL); g_timer_stop (timer); - g_object_unref (icon); + cairo_surface_destroy (icon); cumu += elaps; g_message ("entire loading: %.3f, cumulative %.3f", elaps, cumu); -- cgit v1.2.1