diff options
author | Alexandru Pandelea <[email protected]> | 2017-03-08 23:06:13 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-04-05 09:09:16 +0200 |
commit | 556663ac4b8eb03b86fa70eeb6b959e1d27281e2 (patch) | |
tree | bed385abce343328c83bf81e683d71c7b72a7624 | |
parent | 0630180fcb42da1c6ecd95eb0bba41e71a567b27 (diff) | |
download | caja-556663ac4b8eb03b86fa70eeb6b959e1d27281e2.tar.bz2 caja-556663ac4b8eb03b86fa70eeb6b959e1d27281e2.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
-rw-r--r-- | src/file-manager/fm-list-model.c | 2 |
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; |