From: Emmanuele Bassi Date: Thu, 20 Oct 2022 11:36:32 +0000 (+0100) Subject: Mark GtkStyleContext type as deprecated X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~150^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e045e798a2b183ab93cb0d78b74302a289b44768;p=gtk4.git Mark GtkStyleContext type as deprecated Add the Deprecated tag to the type docblock --- diff --git a/gtk/deprecated/gtkstylecontext.c b/gtk/deprecated/gtkstylecontext.c index 1ba9b9b2af..13636f25e5 100644 --- a/gtk/deprecated/gtkstylecontext.c +++ b/gtk/deprecated/gtkstylecontext.c @@ -48,7 +48,7 @@ * and RTL/LTR information set. The style context will also be updated * automatically if any of these settings change on the widget. * - * # Style Classes + * ## Style Classes * * Widgets can add style classes to their context, which can be used to associate * different styles by class. The documentation for individual widgets lists @@ -71,6 +71,10 @@ * `XDG_CONFIG_HOME/gtk-4.0/gtk.css` will * still take precedence over your changes, as it uses the * %GTK_STYLE_PROVIDER_PRIORITY_USER priority. + * + * Deprecated: 4.10: The relevant API has been moved to [class@Gtk.Widget] + * where applicable; otherwise, there is no replacement for querying the + * style machinery. Stylable UI elements should use widgets. */ #define CURSOR_ASPECT_RATIO (0.04)