theme: handle keys case-insensitively

...because this is what openbox does and some themes have capital
letters in places
This commit is contained in:
Johan Malm 2021-09-24 21:19:19 +01:00
parent e17544d0b1
commit 2143f4bf19

View file

@ -106,7 +106,11 @@ theme_builtin(struct theme *theme)
static bool static bool
match(const gchar *pattern, const gchar *string) match(const gchar *pattern, const gchar *string)
{ {
return (bool)g_pattern_match_simple(pattern, string); GString *p = g_string_new(pattern);
g_string_ascii_down(p);
bool ret = (bool)g_pattern_match_simple(p->str, string);
g_string_free(p, true);
return ret;
} }
static void static void