diff options
author | Victor Kareh <[email protected]> | 2019-07-07 07:00:00 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-20 18:49:02 +0200 |
commit | 0124edc9296b9f0a942053d9f1ae1c778ca79185 (patch) | |
tree | 5a3befc27e69d776b93314e1e01f5be0dd2ca19d /src/file-manager | |
parent | 9f8ed147f39096125cd29a838ad0ccbbcfa7e8e5 (diff) | |
download | caja-0124edc9296b9f0a942053d9f1ae1c778ca79185.tar.bz2 caja-0124edc9296b9f0a942053d9f1ae1c778ca79185.tar.xz |
Replace gdkpixbuf with cairo_surfaces in a few more places
Diffstat (limited to 'src/file-manager')
-rw-r--r-- | src/file-manager/fm-empty-view.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |