Skip to content

Commit 556663a

Browse files
alexandrupandelearaveit65
authored andcommitted
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
1 parent 0630180 commit 556663a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/file-manager/fm-list-model.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ fm_list_model_get_icon_scale (FMListModel *model)
270270
&retval);
271271

272272
if (retval == -1) {
273-
retval = gdk_screen_get_monitor_scale_factor (gdk_screen_get_default (), 0);
273+
retval = gdk_monitor_get_scale_factor (gdk_display_get_monitor (gdk_display_get_default (), 0));
274274
}
275275

276276
return retval;

0 commit comments

Comments
 (0)