Mark GtkStyleContext type as deprecated
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 20 Oct 2022 11:36:32 +0000 (12:36 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 20 Oct 2022 14:39:07 +0000 (15:39 +0100)
Add the Deprecated tag to the type docblock

gtk/deprecated/gtkstylecontext.c

index 1ba9b9b2afb82d9df4ecbbad937f743f96c05f7b..13636f25e50e0703ef5af72ea28476a7ab28eb02 100644 (file)
@@ -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
  * `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)