diff options
author | lukefromdc <[email protected]> | 2019-07-04 01:48:46 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-20 18:46:34 +0200 |
commit | c90498027a960a47a888255a1d45aaf6d29d80a9 (patch) | |
tree | 70009d421842d37d40aa99ef1d4d1e19a35a95db /libcaja-private | |
parent | 05b6d2b8dd5e0d170c99ea3097c33952d40adab1 (diff) | |
download | caja-c90498027a960a47a888255a1d45aaf6d29d80a9.tar.bz2 caja-c90498027a960a47a888255a1d45aaf6d29d80a9.tar.xz |
file-conflict-dialog: don't scale icons twice on hidpi monitors
Hardcode scale factor to 1 in caja_file_get_icon_pixbuf functions in caja-file-conflict as these icons are already getting scaled elsewhere. Otherwise they get scaled twice and the whole dialog is ballooned oversize on hidpi
*Based on similar change made in Nautilus as a small part of fd01842f996b7d07baf2aafb0f68308fc5ed2055 "file-conflict-dialog: separate file logic from UI management " which was a more general refactoring of the file conflict dialog and split out the frontend and backend code.
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-file-conflict-dialog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcaja-private/caja-file-conflict-dialog.c b/libcaja-private/caja-file-conflict-dialog.c index 4fe465ec..22d0b3e5 100644 --- a/libcaja-private/caja-file-conflict-dialog.c +++ b/libcaja-private/caja-file-conflict-dialog.c @@ -76,7 +76,7 @@ file_icons_changed (CajaFile *file, pixbuf = caja_file_get_icon_pixbuf (fcd->details->destination, CAJA_ICON_SIZE_LARGE, TRUE, - gtk_widget_get_scale_factor (fcd->details->dest_image), + 1, /*Don't double-scale icons*/ CAJA_FILE_ICON_FLAGS_USE_THUMBNAILS); gtk_image_set_from_pixbuf (GTK_IMAGE (fcd->details->dest_image), pixbuf); @@ -85,7 +85,7 @@ file_icons_changed (CajaFile *file, pixbuf = caja_file_get_icon_pixbuf (fcd->details->source, CAJA_ICON_SIZE_LARGE, TRUE, - gtk_widget_get_scale_factor (fcd->details->src_image), + 1, /*Don't double-scale icons*/ CAJA_FILE_ICON_FLAGS_USE_THUMBNAILS); gtk_image_set_from_pixbuf (GTK_IMAGE (fcd->details->src_image), pixbuf); @@ -237,7 +237,7 @@ file_list_ready_cb (GList *files, pixbuf = caja_file_get_icon_pixbuf (dest, CAJA_ICON_SIZE_LARGE, TRUE, - gtk_widget_get_scale_factor (fcd->details->titles_vbox), + 1, /*Don't double-scale icons*/ CAJA_FILE_ICON_FLAGS_USE_THUMBNAILS); details->dest_image = gtk_image_new_from_pixbuf (pixbuf); gtk_box_pack_start (GTK_BOX (details->first_hbox), @@ -248,7 +248,7 @@ file_list_ready_cb (GList *files, pixbuf = caja_file_get_icon_pixbuf (src, CAJA_ICON_SIZE_LARGE, TRUE, - gtk_widget_get_scale_factor (fcd->details->titles_vbox), + 1, /*Don't double-scale icons*/ CAJA_FILE_ICON_FLAGS_USE_THUMBNAILS); details->src_image = gtk_image_new_from_pixbuf (pixbuf); gtk_box_pack_start (GTK_BOX (details->second_hbox), |