summaryrefslogtreecommitdiff
path: root/gtk/gtkiconhelper.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-09-13 17:04:19 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-09-14 00:08:36 -0400
commit5bbe811090d11840bbd65f46b6f5100b3079ac97 (patch)
tree317ac1036a5efce27afe696b5ddc35a023edb7b8 /gtk/gtkiconhelper.c
parent952f85c12de13e978294af58f26694eddb3a1ee0 (diff)
downloadgtk+-wip/css-value-unboxing.tar.gz
wip: Unbox css valueswip/css-value-unboxing
Keep css values unboxed in the values structs, for faster access to these values, where it makes sense.
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r--gtk/gtkiconhelper.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 80cbca7474..ef5473f24f 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -55,13 +55,10 @@ get_icon_lookup_flags (GtkIconHelper *self,
GtkCssStyle *style)
{
GtkIconLookupFlags flags;
- GtkCssIconStyle icon_style;
flags = 0;
- icon_style = _gtk_css_icon_style_value_get (style->icon->icon_style);
-
- switch (icon_style)
+ switch (style->icon->_icon_style)
{
case GTK_CSS_ICON_STYLE_REGULAR:
flags |= GTK_ICON_LOOKUP_FORCE_REGULAR;
@@ -455,7 +452,7 @@ gtk_icon_helper_get_size (GtkIconHelper *self)
return self->pixel_size;
style = gtk_css_node_get_style (self->node);
- return _gtk_css_number_value_get (style->icon->icon_size, 100);
+ return style->icon->_icon_size;
}
void