lib: Deprecate get_ui_scaling_factor

Get the scaling factor for the monitor you are drawing to with
`Meta.Display.get_monitor_scale` instead.
This commit is contained in:
David Hewitt 2023-04-20 15:26:20 +02:00 committed by Corentin Noël
parent d52b2ae43f
commit 07f7c21482

View File

@ -310,8 +310,18 @@ namespace Gala {
return container;
}
/**
* DEPRECATED: When used with Mutter 44, this will always return 1.
* Get the scaling factor for the monitor you are drawing to with
* `Meta.Display.get_monitor_scale` instead
*/
[Version (deprecated = true, deprecated_since = "7.0.3", replacement = "Meta.Display.get_monitor_scale")]
public static int get_ui_scaling_factor () {
#if HAS_MUTTER44
return 1;
#else
return Meta.Backend.get_backend ().get_settings ().get_ui_scaling_factor ();
#endif
}
/**