summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-empty-view.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-07-07 07:00:00 -0400
committerraveit65 <[email protected]>2019-07-10 16:23:20 +0200
commita695fec803121b8b4af2a181e98ae7ab6ef7e35a (patch)
treeae6079b72a631d3f267c7c3c170b7b0441b1cce4 /src/file-manager/fm-empty-view.c
parente87dae607ad393e0b00de3f99a1a2d2f1a1637cf (diff)
downloadcaja-a695fec803121b8b4af2a181e98ae7ab6ef7e35a.tar.bz2
caja-a695fec803121b8b4af2a181e98ae7ab6ef7e35a.tar.xz
Replace gdkpixbuf with cairo_surfaces in a few more places
Diffstat (limited to 'src/file-manager/fm-empty-view.c')
-rw-r--r--src/file-manager/fm-empty-view.c6
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 44af4a85..60e68382 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);