From 556663ac4b8eb03b86fa70eeb6b959e1d27281e2 Mon Sep 17 00:00:00 2001 From: Alexandru Pandelea Date: Wed, 8 Mar 2017 23:06:13 +0200 Subject: general: use gdk_monitor_get_scale_factor As it is deprecated, instead of using gdk_screen_get_monitor_scale_factor use gdk_monitor_get_scale_factor(). https://bugzilla.gnome.org/show_bug.cgi?id=779774 origin commit: https://gitlab.gnome.org/GNOME/nautilus/commit/273e6efc --- src/file-manager/fm-list-model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file-manager/fm-list-model.c b/src/file-manager/fm-list-model.c index 715303b5..641a3fcf 100644 --- a/src/file-manager/fm-list-model.c +++ b/src/file-manager/fm-list-model.c @@ -270,7 +270,7 @@ fm_list_model_get_icon_scale (FMListModel *model) &retval); if (retval == -1) { - retval = gdk_screen_get_monitor_scale_factor (gdk_screen_get_default (), 0); + retval = gdk_monitor_get_scale_factor (gdk_display_get_monitor (gdk_display_get_default (), 0)); } return retval; -- cgit v1.2.1