Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 Apr 5, 2018
1 parent e28ff9c commit 280ef82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file-manager/fm-list-model.c
Expand Up @@ -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;
Expand Down

0 comments on commit 280ef82

Please sign in to comment.