mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
theme: handle keys case-insensitively
...because this is what openbox does and some themes have capital letters in places
This commit is contained in:
parent
e17544d0b1
commit
2143f4bf19
1 changed files with 5 additions and 1 deletions
|
|
@ -106,7 +106,11 @@ theme_builtin(struct theme *theme)
|
|||
static bool
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue