- 28 Feb, 2016 1 commit
-
-
Matthias Clasen authored
g_logv adds one for us already.
-
- 04 Feb, 2016 1 commit
-
-
Benjamin Otte authored
Instead of /org/gtk/libgtk/theme/$THEME-$VARIANT.css look at /org/gtk/libgtk/theme/$THEME/gtk-$VARIANT.css and that way mirror the directory layout of real themes.
-
- 30 Jan, 2016 1 commit
-
-
Matthias Clasen authored
Currently, GtkCssProvider can emit ::parsing-error only during the actual parsing, although the documentation hints that it might happen at other times. This commit adds a emit_error method to the GtkStyleProviderPrivate interface that will let us emit errors from the compute() implementations as well, which can be useful (e.g. if an image fails to load).
-
- 14 Jan, 2016 1 commit
-
-
Eric Williams authored
-
- 07 Jan, 2016 1 commit
-
-
- 26 Dec, 2015 1 commit
-
-
Matthias Clasen authored
Split the CSS docs off from the GtkCssProvider docs and give them their own chapter. Among other things, this commit introduces more or less complete definitions of the syntax for the supported selectors, a complete list of all supported properties, and definitions for their values. This includes documentation for GTK+-specific properties such as -gtk-icon-source.
-
- 20 Dec, 2015 1 commit
-
-
Matthias Clasen authored
Remove references to regions and engines, emphasize element names over type names, update the list of pseudo-states.
-
- 02 Dec, 2015 1 commit
-
-
Krzesimir Nowak authored
We know that parent is NULL at this point. Also, fix indentation.
-
- 21 Nov, 2015 3 commits
-
-
Matthias Clasen authored
This is not a standard CSS property, so rename it to -gtk-icon-shadow. We still support the old name, with a deprecation warning.
-
Matthias Clasen authored
Emit a deprecation warning if a property is not used by its official name.
-
Matthias Clasen authored
This helps people fix up their css.
-
- 16 Nov, 2015 3 commits
-
-
Matthias Clasen authored
This makes G_PARAM_DEPRECATED useful for style properties.
-
Benjamin Otte authored
For @import, we want to emit the error as part of the @import statement, not as part of the new file.
-
Benjamin Otte authored
When loading a nonexisting CSS file using gtk_css_provider_load_from_file() or gtk_css_provider_load_from_path() we would emit the error using a NULL scanner. Don't do that, because we'll have a NULL section in that case and error handlers don't like that. Testcase attached. https://bugzilla.redhat.com/show_bug.cgi?id=1277959
-
- 28 Oct, 2015 1 commit
-
-
Benjamin Otte authored
Signal handlers expect a section to be present, so provide them with one. New testcase included. https://bugzilla.gnome.org/show_bug.cgi?id=757240
-
- 09 Sep, 2015 1 commit
-
-
Matthias Clasen authored
This is in preparation for not allocating an array at all if there are no matches.
-
- 27 Aug, 2015 1 commit
-
-
Benjamin Otte authored
Nobody is able to look up those hex values.
-
- 27 Jul, 2015 1 commit
-
-
Matthias Clasen authored
GtkCssProvider was using the wrong unref function for GtkCssKeyframe objects. Funnily, this didn't crash at all, the refcount was at the same place in the struct - it just didn't free all the memory, causing valgrind to complain.
-
- 18 Mar, 2015 1 commit
-
-
Benjamin Otte authored
The node declaration has the same functionality as gtk_css_node_declaration_add_to_widget_path(). So instead of using that function on a path, you can use the original path and the declaration in a matcher.
-
- 07 Jan, 2015 1 commit
-
-
Benjamin Otte authored
This is in preaparation for the big GtkCssComputedValues => GtkCssStyle rename
-
- 18 Dec, 2014 1 commit
-
-
Erick Pérez Castellanos authored
-
- 10 Dec, 2014 2 commits
-
-
Benjamin Otte authored
-
Benjamin Otte authored
Instead of walking the selector tree, we walk the selectors.
-
- 13 Nov, 2014 1 commit
-
-
Matthias Clasen authored
Look for themes in $prefix/themes/$name/gtk-$version/ (for version = 3.16, 3.14, ...), before using the old location $prefix/themes/$name/gtk-3.0/. This gives theme authors a way to support multiple versions of GTK+ 3 with separate css files.
-
- 12 Nov, 2014 1 commit
-
-
Matthias Clasen authored
Move finding the gtk.css file into its own function. We will make this more complicated in the near future.
-
- 24 Oct, 2014 1 commit
-
-
Benjamin Otte authored
-
- 22 Oct, 2014 1 commit
-
-
Matthias Clasen authored
-
- 04 Oct, 2014 2 commits
-
-
Matthias Clasen authored
GTK+ relies on this function silently failing for invalid data.
-
Matthias Clasen authored
This is common enough that we should just provide an API for it - we already had a function for this purpose anyway. https://bugzilla.gnome.org/show_bug.cgi?id=672946
-
- 28 Aug, 2014 1 commit
-
-
Emmanuele Bassi authored
The font-stretch CSS property is defined in the Level 3 CSS Fonts module, available at: http://dev.w3.org/csswg/css-fonts/#propdef-font-stretch It allows defining a normal, condensed, or expanded face to the font description. Pango already supports it, so this is literally just the CSS parser machinery needed to bridge our CSS to the FontDescription API. https://bugzilla.gnome.org/show_bug.cgi?id=735593
-
- 19 Jul, 2014 1 commit
-
-
Benjamin Otte authored
Don't take a state when constructing the CSS matcher. Instead, rely on the newly introduced state in the widget path. This way, the state can be queried not only on the first element, but on all elements of the widget path.
-
- 07 Jul, 2014 1 commit
-
-
Matthias Clasen authored
Add a private function that lets us decide at runtime whether to keep css section information around - this will be useful in the GtkInspector.
-
- 16 Jun, 2014 1 commit
-
-
Benjamin Otte authored
We want to have the "-gtk-" prefix for our custom CSS properties. But we also want to parse names starting with a "-" as style properties. So make sure that "-gtk-" is treated like a normal property and we emit errors when somebody uses it wrong. This is to catch errors with people typing -gtk-iconsource: none; instead of the correct -gtk-icon-source: none;
-
- 04 Apr, 2014 1 commit
-
-
Volker Sobek authored
commit 7f6a964c replaced entities, but escaped the replacement text also inside literals, which resulted in the escaping '\' to also appear in the documentation. https://bugzilla.gnome.org/show_bug.cgi?id=727322
-
- 19 Mar, 2014 1 commit
-
-
Benjamin Otte authored
expected a valid semicolon sounds kinda not so great. Make it say expected semicolon Unless somebody can tell me the difference between valid and invalid semicolons?
-
- 02 Mar, 2014 2 commits
-
-
Andrés G. Aragoneses authored
-
Andrés G. Aragoneses authored
-
- 15 Feb, 2014 1 commit
-
-
Matthias Clasen authored
Without sgml mode, we can't escape /* as /* anymore, so just switch to // for comments in examples.
-
- 09 Feb, 2014 1 commit
-
-
Matthias Clasen authored
With all element markup gone, it is time to turn off sgml mode, and get rid of entities as well.
-
- 08 Feb, 2014 1 commit
-
-
William Jon McCann authored
-