Deprecate to-be-removed screen API

GTK+ 4 is removing the monitor-related screen APIs. We should
deprecate them in 3.22 so people know to port away from them.
This commit is contained in:
Matthias Clasen
2016-10-20 11:59:21 -04:00
parent 0d104b041a
commit 61fc7ddd87
5 changed files with 47 additions and 11 deletions

View File

@ -578,7 +578,9 @@ init_scale (GtkInspectorVisual *vis)
{
gdouble scale;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
scale = gdk_screen_get_monitor_scale_factor (screen, 0);
G_GNUC_END_IGNORE_DEPRECATIONS
gtk_adjustment_set_value (vis->priv->scale_adjustment, scale);
g_signal_connect (vis->priv->scale_adjustment, "value-changed",
G_CALLBACK (scale_changed), vis);