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 lukefromdc committed Mar 8, 2017
1 parent e28ff9c commit 280ef8294b0e50394b5118cb298b0f9e5920f795
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 280ef82

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