mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 00:06:24 +01:00
Use case insensitive compare for signal "when" attribute
Update parser to use g_ascii_strcasecmp instead of strcmp. This fixes incorrect flags being set when the incomming gir is using lowercase values for the "when" attribute. https://bugzilla.gnome.org/show_bug.cgi?id=709462
This commit is contained in:
parent
236d3375c6
commit
67ee43b667
@ -2301,9 +2301,9 @@ start_glib_signal (GMarkupParseContext *context,
|
||||
signal->run_first = FALSE;
|
||||
signal->run_last = FALSE;
|
||||
signal->run_cleanup = FALSE;
|
||||
if (when == NULL || strcmp (when, "LAST") == 0)
|
||||
if (when == NULL || g_ascii_strcasecmp (when, "LAST") == 0)
|
||||
signal->run_last = TRUE;
|
||||
else if (strcmp (when, "FIRST") == 0)
|
||||
else if (g_ascii_strcasecmp (when, "FIRST") == 0)
|
||||
signal->run_first = TRUE;
|
||||
else
|
||||
signal->run_cleanup = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user