[nautilus/wip/antoniof/experimental-gtk4-build: 28/55] monitors -- squash with later change




commit fbb83dc15e75b0bcbc9c790b0ca0e01dc1f04b3c
Author: António Fernandes <antoniof gnome org>
Date:   Sat Jan 1 15:50:22 2022 +0000

    monitors -- squash with later change

 src/nautilus-list-model.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-list-model.c b/src/nautilus-list-model.c
index 701fc3eaf..a8df95fca 100644
--- a/src/nautilus-list-model.c
+++ b/src/nautilus-list-model.c
@@ -302,7 +302,7 @@ nautilus_list_model_get_icon_scale (NautilusListModel *model)
 
     if (retval == -1)
     {
-        retval = gdk_monitor_get_scale_factor (gdk_display_get_monitor (gdk_display_get_default (), 0));
+        retval = gdk_monitor_get_scale_factor (g_list_model_get_item (gdk_display_get_monitors 
(gdk_display_get_default ()), 0));
     }
 
     /* FIXME: Temporary regression: HiDPI icons not supported, ignore scale. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]