forked from AuroraMiddleware/gtk
A little closer to css
Declarations are ;-separated, but there is no ; required after the last declaration. We harmlessly accept either.
This commit is contained in:
parent
295cf25d6b
commit
4135fbf4d6
@ -50,24 +50,25 @@
|
|||||||
* <programlisting>
|
* <programlisting>
|
||||||
* /* Theme labels that are descendants of a window */
|
* /* Theme labels that are descendants of a window */
|
||||||
* GtkWindow GtkLabel {
|
* GtkWindow GtkLabel {
|
||||||
* background-color: #898989;
|
* background-color: #898989
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* /* Theme notebooks, and anything that's within these */
|
* /* Theme notebooks, and anything that's within these */
|
||||||
* GtkNotebook {
|
* GtkNotebook {
|
||||||
* background-color: #a939f0;
|
* background-color: #a939f0
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* /* Theme combo boxes, and entries that
|
* /* Theme combo boxes, and entries that
|
||||||
* are direct children of a notebook */
|
* are direct children of a notebook */
|
||||||
* GtkComboBox,
|
* GtkComboBox,
|
||||||
* GtkNotebook > GtkEntry {
|
* GtkNotebook > GtkEntry {
|
||||||
* background-color: #1209a2;
|
* color: @fg_color;
|
||||||
|
* background-color: #1209a2
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* /* Theme any widget within a GtkBin */
|
* /* Theme any widget within a GtkBin */
|
||||||
* GtkBin * {
|
* GtkBin * {
|
||||||
* font-name: Sans 20;
|
* font-name: Sans 20
|
||||||
* }
|
* }
|
||||||
* </programlisting>
|
* </programlisting>
|
||||||
* </example>
|
* </example>
|
||||||
@ -79,12 +80,12 @@
|
|||||||
* <programlisting>
|
* <programlisting>
|
||||||
* /* Theme a label named title-label */
|
* /* Theme a label named title-label */
|
||||||
* GtkLabel#title-label {
|
* GtkLabel#title-label {
|
||||||
* font-name: Sans 15;
|
* font-name: Sans 15
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* /* Theme any widget named main-entry */
|
* /* Theme any widget named main-entry */
|
||||||
* #main-entry {
|
* #main-entry {
|
||||||
* background-color: #f0a810;
|
* background-color: #f0a810
|
||||||
* }
|
* }
|
||||||
* </programlisting>
|
* </programlisting>
|
||||||
* </example>
|
* </example>
|
||||||
@ -102,7 +103,7 @@
|
|||||||
*
|
*
|
||||||
* /* Theme spinbuttons' entry */
|
* /* Theme spinbuttons' entry */
|
||||||
* GtkSpinButton.entry {
|
* GtkSpinButton.entry {
|
||||||
* color: #900185;
|
* color: #900185
|
||||||
* }
|
* }
|
||||||
* </programlisting>
|
* </programlisting>
|
||||||
* </example>
|
* </example>
|
||||||
@ -197,7 +198,7 @@
|
|||||||
* <example>
|
* <example>
|
||||||
* <title>Using the @import rule</title>
|
* <title>Using the @import rule</title>
|
||||||
* <programlisting>
|
* <programlisting>
|
||||||
* @import url ("path/to/common.css")
|
* @import url ("path/to/common.css");
|
||||||
* </programlisting>
|
* </programlisting>
|
||||||
* </example>
|
* </example>
|
||||||
* <para>
|
* <para>
|
||||||
@ -254,7 +255,7 @@
|
|||||||
* example in common CSS it is fine to define a font through
|
* example in common CSS it is fine to define a font through
|
||||||
* the different @font-family, @font-style, @font-size
|
* the different @font-family, @font-style, @font-size
|
||||||
* properties, meanwhile in GTK+'s CSS only the canonical
|
* properties, meanwhile in GTK+'s CSS only the canonical
|
||||||
* @font property would be supported.
|
* @font property is supported.
|
||||||
* </para>
|
* </para>
|
||||||
* <para>
|
* <para>
|
||||||
* The currently supported properties are:
|
* The currently supported properties are:
|
||||||
@ -1578,8 +1579,7 @@ symbolic_color_parse_str (const gchar *string,
|
|||||||
str++;
|
str++;
|
||||||
end = str;
|
end = str;
|
||||||
|
|
||||||
while (*end == '-' || *end == '_' ||
|
while (*end == '-' || *end == '_' || g_ascii_isalpha (*end))
|
||||||
g_ascii_isalpha (*end))
|
|
||||||
end++;
|
end++;
|
||||||
|
|
||||||
name = g_strndup (str, end - str);
|
name = g_strndup (str, end - str);
|
||||||
@ -2015,7 +2015,7 @@ gradient_parse_str (const gchar *str,
|
|||||||
str++;
|
str++;
|
||||||
SKIP_SPACES (str);
|
SKIP_SPACES (str);
|
||||||
|
|
||||||
position = g_strtod (str, &end);
|
position = g_ascii_strtod (str, &end);
|
||||||
|
|
||||||
str = end;
|
str = end;
|
||||||
SKIP_SPACES (str);
|
SKIP_SPACES (str);
|
||||||
@ -2875,7 +2875,7 @@ parse_rule (GtkCssProvider *css_provider,
|
|||||||
g_scanner_get_next_token (scanner);
|
g_scanner_get_next_token (scanner);
|
||||||
|
|
||||||
if (scanner->token != ';')
|
if (scanner->token != ';')
|
||||||
return ';';
|
break;
|
||||||
|
|
||||||
g_scanner_get_next_token (scanner);
|
g_scanner_get_next_token (scanner);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user