From c6d7b704cb657eb25228b716e5ce6a9c51b7fa84 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 9 May 2024 23:26:55 -0400 Subject: [PATCH] css parser: Fix a typo Due to an ARAY vs ARRAY mishap, we weren't actually preallocating any blocks. Fix that, and reduce the number of preallocated blocks to 12. That seems sufficient, since parsing the Default theme never needs more than 5 blocks. --- gtk/css/gtkcssparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/css/gtkcssparser.c b/gtk/css/gtkcssparser.c index 75744dec4e..4e273a9972 100644 --- a/gtk/css/gtkcssparser.c +++ b/gtk/css/gtkcssparser.c @@ -39,7 +39,7 @@ struct _GtkCssParserBlock #define GDK_ARRAY_NAME gtk_css_parser_blocks #define GDK_ARRAY_TYPE_NAME GtkCssParserBlocks #define GDK_ARRAY_ELEMENT_TYPE GtkCssParserBlock -#define GDK_ARAY_PREALLOC 32 +#define GDK_ARRAY_PREALLOC 12 #define GDK_ARRAY_NO_MEMSET 1 #include "gdk/gdkarrayimpl.c"