From bc1405c9f54e19e74f973581130229ef1053ff9c Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 2 Aug 2013 14:37:13 +0200 Subject: Support HiDpi icons Port the rendering of icons to cairo surfaces, so that we can apply the GDK scale factor when rendering icons. origin commit: https://gitlab.gnome.org/GNOME/nautilus/commit/0d4555d7 --- src/caja-navigation-window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/caja-navigation-window.c') diff --git a/src/caja-navigation-window.c b/src/caja-navigation-window.c index 08a7704b..531c9ae0 100644 --- a/src/caja-navigation-window.c +++ b/src/caja-navigation-window.c @@ -756,7 +756,8 @@ static CajaIconInfo * real_get_icon (CajaWindow *window, CajaWindowSlot *slot) { - return caja_file_get_icon (slot->viewed_file, 48, + return caja_file_get_icon (slot->viewed_file, + 48, gtk_widget_get_scale_factor (GTK_WIDGET (window)), CAJA_FILE_ICON_FLAGS_IGNORE_VISITING | CAJA_FILE_ICON_FLAGS_USE_MOUNT_ICON); } -- cgit v1.2.1