Commit 273e6efc authored by Alexandru Pandelea's avatar Alexandru Pandelea
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
parent a78985c5
......@@ -279,7 +279,7 @@ nautilus_list_model_get_icon_scale (NautilusListModel *model)
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;
......
......@@ -573,7 +573,7 @@ result_list_attributes_ready_cb (GList *file_list,
GVariant *meta_variant;
gint icon_scale;
icon_scale = gdk_screen_get_monitor_scale_factor (gdk_screen_get_default (), 0);
icon_scale = gdk_monitor_get_scale_factor (gdk_display_get_monitor (gdk_display_get_default (), 0));
for (l = file_list; l != NULL; l = l->next)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment