diff options
author | Benjamin Otte <otte@redhat.com> | 2015-11-20 19:37:52 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-11-20 21:22:15 +0100 |
commit | d75989a52b6e19aa53de3c8d08ae47c6441882ed (patch) | |
tree | 2f08c17452d6667909036a6fa66fb5dca51ffb60 /gtk/gtkcsslookupprivate.h | |
parent | 6489ec440fde74a4db3ed283b1e96f94120e45af (diff) | |
download | gtk+-d75989a52b6e19aa53de3c8d08ae47c6441882ed.tar.gz |
cssstyle: Don't store custom css properties
This makes custom CSS properties no longer configurable. But it avoids
crashes when loading custom themes, so that's a good thing.
Testcase included.
https://bugzilla.redhat.com/show_bug.cgi?id=1281234
Diffstat (limited to 'gtk/gtkcsslookupprivate.h')
-rw-r--r-- | gtk/gtkcsslookupprivate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcsslookupprivate.h b/gtk/gtkcsslookupprivate.h index cb504661c1..558a53a943 100644 --- a/gtk/gtkcsslookupprivate.h +++ b/gtk/gtkcsslookupprivate.h @@ -35,7 +35,7 @@ typedef struct { struct _GtkCssLookup { GtkBitmask *missing; - GtkCssLookupValue values[1]; + GtkCssLookupValue values[GTK_CSS_PROPERTY_N_PROPERTIES]; }; GtkCssLookup * _gtk_css_lookup_new (const GtkBitmask *relevant); |