mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
GSettings: accept <flags> as an alias for <enum>
until we have proper support for flags...
This commit is contained in:
@@ -1117,7 +1117,8 @@ start_element (GMarkupParseContext *context,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strcmp (element_name, "enum") == 0)
|
else if (strcmp (element_name, "enum") == 0 ||
|
||||||
|
strcmp (element_name, "flags") == 0)
|
||||||
{
|
{
|
||||||
const gchar *id;
|
const gchar *id;
|
||||||
if (COLLECT (STRING, "id", &id))
|
if (COLLECT (STRING, "id", &id))
|
||||||
@@ -1239,7 +1240,8 @@ start_element (GMarkupParseContext *context,
|
|||||||
|
|
||||||
|
|
||||||
/* children of <enum> {{{3 */
|
/* children of <enum> {{{3 */
|
||||||
else if (strcmp (container, "enum") == 0)
|
else if (strcmp (container, "enum") == 0 ||
|
||||||
|
strcmp (container, "flags") == 0)
|
||||||
{
|
{
|
||||||
if (strcmp (element_name, "value") == 0)
|
if (strcmp (element_name, "value") == 0)
|
||||||
{
|
{
|
||||||
@@ -1305,7 +1307,8 @@ end_element (GMarkupParseContext *context,
|
|||||||
state->schemalist_domain = NULL;
|
state->schemalist_domain = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strcmp (element_name, "enum") == 0)
|
else if (strcmp (element_name, "enum") == 0 ||
|
||||||
|
strcmp (element_name, "flags") == 0)
|
||||||
enum_state_end (&state->enum_state, error);
|
enum_state_end (&state->enum_state, error);
|
||||||
|
|
||||||
else if (strcmp (element_name, "schema") == 0)
|
else if (strcmp (element_name, "schema") == 0)
|
||||||
|
Reference in New Issue
Block a user