Skip to content
Permalink
Browse files

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
  • Loading branch information...
alexandrupandelea authored and raveit65 committed Mar 8, 2017
1 parent 0630180 commit 556663ac4b8eb03b86fa70eeb6b959e1d27281e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 556663a

Please sign in to comment.
You can’t perform that action at this time.