[libadwaita] clamp: Fix the style class documentation



commit eb61f4cbeecb89c0113139253c508b99b17ef846
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Apr 7 10:15:11 2021 +0200

    clamp: Fix the style class documentation
    
    While HdyClamp was assigning itself style classes, AdwClamp assign them
    to its children. Because in GTK 4 layout managers can have multiple
    children, and because a child's size requests can affect the values and
    hence the computed style classes, the style classes are child-dependent.

 src/adw-clamp.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/adw-clamp.c b/src/adw-clamp.c
index 3df48f9..e6f96e3 100644
--- a/src/adw-clamp.c
+++ b/src/adw-clamp.c
@@ -24,10 +24,10 @@
  *
  * # CSS nodes
  *
- * #AdwClamp has a single CSS node with name clamp. The node will get the style
- * classes .large when its child reached its maximum size, .small when the clamp
- * allocates its full size to its child, .medium in-between, or none if it
- * didn't compute its size yet.
+ * #AdwClamp has a single CSS node with name clamp. Its children will receive
+ * the style classes .large when the child reached its maximum size, .small when
+ * the clamp allocates its full size to the child, .medium in-between, or none
+ * if it didn't compute its size yet.
  *
  * Since: 1.0
  */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]