- if ( _gtk_css_parser_try (parser, "over", TRUE))
- {
- if (!_gtk_css_parser_try (parser, "(", TRUE))
- {
- _gtk_css_parser_error (parser,
- "Expected '(' after 'over'");
- return 0;
- }
-
- if (!_gtk_css_parser_try_int (parser, &xp_part2))
- {
- g_free (class);
- _gtk_css_parser_error (parser, "Expected a valid integer value");
- return 0;
- }
-
- if (!_gtk_css_parser_try_int (parser, &state2))
- {
- g_free (class);
- _gtk_css_parser_error (parser, "Expected a valid integer value");
- return 0;
- }
-
- if ( _gtk_css_parser_try (parser, ",", TRUE))
- {
- if (!_gtk_css_parser_try_double (parser, &over_alpha))
- {
- g_free (class);
- _gtk_css_parser_error (parser, "Expected a valid double value");
- return 0;
- }
- }
-
- if (!_gtk_css_parser_try (parser, ")", TRUE))
- {
- g_free (class);
- _gtk_css_parser_error (parser,
- "Expected ')' at end of 'over'");
- return 0;
- }
- }
- else if ( _gtk_css_parser_try (parser, "margins", TRUE))
- {
- if (!_gtk_css_parser_try (parser, "(", TRUE))
- {
- g_free (class);
- _gtk_css_parser_error (parser,
- "Expected '(' after 'margins'");
- return 0;
- }
-
- for (i = 0; i < 4; i++)
- {
- if (!_gtk_css_parser_try_int (parser, &margins[i]))
- break;
- }
-
- if (i == 0)
- {
- g_free (class);
- _gtk_css_parser_error (parser, "Expected valid margins");
- return 0;
- }
-
- if (i == 1)
- margins[1] = margins[0];
- if (i <= 2)
- margins[2] = margins[1];
- if (i <= 3)
- margins[3] = margins[2];
-
- if (!_gtk_css_parser_try (parser, ")", TRUE))
- {
- g_free (class);
- _gtk_css_parser_error (parser,
- "Expected ')' at end of 'margins'");
- return 0;
- }
- }
- else