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 --- libcaja-private/caja-program-choosing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libcaja-private/caja-program-choosing.c') diff --git a/libcaja-private/caja-program-choosing.c b/libcaja-private/caja-program-choosing.c index 27043583..a49a96e9 100644 --- a/libcaja-private/caja-program-choosing.c +++ b/libcaja-private/caja-program-choosing.c @@ -244,7 +244,9 @@ caja_launch_application_by_uri (GAppInfo *application, } file = caja_file_get_by_uri (uris->data); - icon = caja_file_get_icon (file, 48, 0); + icon = caja_file_get_icon (file, + 48, gtk_widget_get_scale_factor (GTK_WIDGET (parent_window)), + 0); caja_file_unref (file); if (icon) { -- cgit v1.2.1