[gtk/letterspacing-resize] css: Letterspacing affects text size



commit 8400d8e75d70242aa7283eaa3dd0eeab1a46e1d4
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 18 17:34:44 2019 +0000

    css: Letterspacing affects text size
    
    It does. And we were missing the proper
    flags to make GTK do the right thing when
    changing letter-spacing in the inspector.

 gtk/gtkcssstylepropertyimpl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index 6304c899fe..251adb4a9a 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -1030,7 +1030,7 @@ _gtk_css_style_property_init_properties (void)
                                           GTK_CSS_PROPERTY_LETTER_SPACING,
                                           G_TYPE_NONE,
                                           GTK_STYLE_PROPERTY_INHERIT | GTK_STYLE_PROPERTY_ANIMATED,
-                                          GTK_CSS_AFFECTS_TEXT_ATTRS,
+                                          GTK_CSS_AFFECTS_TEXT_ATTRS | GTK_CSS_AFFECTS_TEXT_SIZE,
                                           parse_letter_spacing,
                                           NULL,
                                           _gtk_css_number_value_new (0.0, GTK_CSS_PX));


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