[gtk/ebassi/tree-deprecation-docs: 8/9] Mark GtkStyleContext type as deprecated
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/tree-deprecation-docs: 8/9] Mark GtkStyleContext type as deprecated
- Date: Thu, 20 Oct 2022 13:38:56 +0000 (UTC)
commit c12d020a84f16bd9fcb0a600f31ffcf49704ceb4
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Oct 20 12:36:32 2022 +0100
Mark GtkStyleContext type as deprecated
Add the Deprecated tag to the type docblock
gtk/deprecated/gtkstylecontext.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]