summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-list-model.c
diff options
context:
space:
mode:
authorAlexandru Pandelea <[email protected]>2017-03-08 23:06:13 +0200
committerlukefromdc <[email protected]>2018-04-04 21:53:21 -0400
commit280ef8294b0e50394b5118cb298b0f9e5920f795 (patch)
treecffaee2e09e4b17edfe7b22de1ffca551b714400 /src/file-manager/fm-list-model.c
parente28ff9cf17d8d72393ace9d68f9864ccbbc28e02 (diff)
downloadcaja-280ef8294b0e50394b5118cb298b0f9e5920f795.tar.bz2
caja-280ef8294b0e50394b5118cb298b0f9e5920f795.tar.xz
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
Diffstat (limited to 'src/file-manager/fm-list-model.c')
-rw-r--r--src/file-manager/fm-list-model.c2
1 files changed, 1 insertions, 1 deletions
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;