summaryrefslogtreecommitdiff
path: root/gtk/gtkcssparser.c
Commit message (Collapse)AuthorAgeFilesLines
* Use stupid quotes instead of dumb quotesMatthias Clasen2015-09-231-1/+1
| | | | | | Following a similar change in GLib a while ago. 'bla' may by stupid, but it looks less dumb than `bla'.
* css: Actually break at end of the stringBenjamin Otte2014-05-221-2/+3
| | | | | | | | Introduced in 65c4c1555d0634c063c3aa354620de260e4aaf7f. Found by gnome-continuous running the testsuite. Includes fixing a broken test in the testsuite.
* css: Fix printing code for CSS strings and identsBenjamin Otte2014-05-051-0/+1
| | | | It used to infloop on special characters.
* css: Split out a common functionBenjamin Otte2014-05-051-0/+44
| | | | It's used in two places already, and Iwant to use it in a third one.
* cssparser: Don't detect /*/ as a commentMarcus Kraßmann2012-11-281-1/+1
|
* gtk: Make functions static that don't need to be non-staticBenjamin Otte2012-10-021-7/+7
| | | | | | | | Also remove the starting underscore from function names where appropriate, as those functions are static now and not exported anymore. This is part of a bunch of fixes for gcc complaining about -Wmissing-declarations.
* cssparser: Don't use a free'd string in error messagesBenjamin Otte2012-09-171-2/+3
|
* cssparser: Change APIs that work with filesBenjamin Otte2012-05-111-3/+45
| | | | | Now that we keep track of the parser's file, we don't require it to be passed anymore.
* cssparser: Keep track of the fileBenjamin Otte2012-05-111-5/+13
|
* cssparser: Move symbolic color parser to gtksymboliccolor.cBenjamin Otte2012-04-171-251/+13
|
* css: Remove GtkCssNumberBenjamin Otte2012-04-171-29/+34
| | | | It's completely replaced by GtkCssNumberValue now.
* css: Add <time> type to css number stuffBenjamin Otte2012-04-171-1/+3
|
* cssparser: Use _gtk_css_parser_error_full()Benjamin Otte2012-04-171-11/+6
|
* cssparser: Add _gtk_css_parser_error_full()Benjamin Otte2012-04-171-0/+17
|
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* css: Implement support for anglesBenjamin Otte2012-02-021-8/+12
|
* css: Add GtkCssNumberBenjamin Otte2012-02-021-0/+117
|
* Ensure we can load images via resource:// uris from CSSAlexander Larsson2012-01-161-0/+10
|
* parser: remove unused _gtk_css_parser_read_uri()Cosimo Cecchi2012-01-131-49/+0
| | | | It's not used anymore now.
* parser: remove a duplicate copy of gtk_css_parse_url()Cosimo Cecchi2012-01-131-0/+56
| | | | Move the function to gtkcssparser.c and use it in both places.
* Introduce _gtk_css_parser_try_lengthPaolo Borelli2012-01-091-0/+17
| | | | | This starts to introduce the proper API abstraction for when we will support different units
* css: Add _gtk_css_parser_has_prefix()Benjamin Otte2012-01-091-0/+9
|
* css: 'transparent' is a valid color everywhereBenjamin Otte2012-01-091-0/+7
|
* Plug tiny leak in the css parserPaolo Borelli2011-12-031-0/+1
|
* css: Add _gtk_css_parser_try_enumAlexander Larsson2011-11-251-0/+47
| | | | | This helps parsing GType enums in CSS, properly handling CSS being case insensitive.
* Add support for win32 theme colors as symbolic colorsAlexander Larsson2011-11-181-2/+11
|
* cssparser: Fix cases where we could overrun the terminating 0Benjamin Otte2011-08-261-3/+8
|
* cssparser: Make lines and positions 0-indexedBenjamin Otte2011-08-261-1/+1
|
* css: Use the correct free functionBenjamin Otte2011-07-201-1/+1
|
* css: Make font property a shorthandBenjamin Otte2011-06-151-1/+4
| | | | | | | | | | | | | | ... and implement the CSS font properties: - font-size - font-style - font-family - font-weight - font-variant This is the second try at this. The first was backed out previously due to bugginess. Let's hope this one survives a bit longer. Also makes the font-family CSS test work again.
* cssparser: Actually send an error in an error caseBenjamin Otte2011-06-131-0/+1
| | | | | The error case was excess commas in rgb/rgba colors, such as rgba(0,255,0,0,0.5)
* Revert "css: Make font property a shorthand"Benjamin Otte2011-06-021-4/+1
| | | | | | | | The hack in gtk_style_context_get_font() was causing segfaults in combobox code. This is not acceptable and I'm not awake enough to fix it, so just reverting until it's fixed sanely is easiest. This reverts commit cf6bfbdb17412a48c72b53aa1ad6d141114c48bc.
* css: Make font property a shorthandBenjamin Otte2011-06-021-1/+4
| | | | | | | | | ... and implement the CSS font properties: - font-size - font-style - font-family - font-weight - font-variant
* css: Don't infloop when resyncing over a slashBenjamin Otte2011-06-021-0/+2
|
* css: We want to unescape backslashes, not slashesBenjamin Otte2011-06-021-1/+1
|
* cssparser: Fix typo where we used "uint" for a typeBenjamin Otte2011-05-221-1/+1
| | | | Interestingly this works for gcc, but breaks on MSVC.
* css: Make property parsing functions take a css parserBenjamin Otte2011-05-181-3/+10
| | | | | Instead of reading a string and then passing that in, let the parse functions use the full power of the parser.
* css: Rewrite the parserBenjamin Otte2011-05-181-0/+938
Instead of relying on GScanner and its idea of syntax, code up a parser that obeys the CSS spec. This also has the great side effect of reporting correct line numbers and positions. Also included is a reorganization of the returned error values. Instead of error values describing what type of syntax error was returned, the code just returns SYNTAX_ERROR. Other messages exist for when actual values don't work or when errors shouldn't be fatal due to backwards compatibility.