summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstyleproperty.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop gtkintl.hMatthias Clasen2022-09-241-1/+0
| | | | | Include gtkprivate.h for I_() and glib-i18n.h for gettext macros.
* Remove all nicks and blurbs from param specsSophie Herold2022-05-111-15/+5
| | | | | | | | Those property features don't seem to be in use anywhere. They are redundant since the docs cover the same information and more. They also created unnecessary translation work. Closes #4904
* Drop fallback-c89.cChristoph Reiter2020-05-311-5/+0
| | | | | | | | | We require a C compiler supporting C99 now. The main purpose of these fallbacks was for MSVC. From what I can see this is now all supported by MSVC 2015+ anyway. The only other change this includes is to replace isnanf() with the (type infering) C99 isnan() macro, because MSVC doesn't provide isnanf().
* Fix minor typosYuri Chornoivan2020-05-281-1/+1
|
* styleproperty: Remove ability to query propertiesBenjamin Otte2020-01-281-17/+0
| | | | With gtk_style_context_get() gone, this is no longer used.
* css: Remove an unused functionMatthias Clasen2020-01-141-30/+0
| | | | | _gtk_css_style_property_get_mask_affecting was superseded by GtkCssStyleChange back in 2015.
* cssparser: Introduce gtk_css_parser_try_ident()Benjamin Otte2019-04-121-3/+3
| | | | ... and gtk_css_parser_has_function().
* Drop unused gtkcssstylefuncs.cMatthias Clasen2017-11-301-1/+0
| | | | | Clean up all the places where the header was still included needlessly.
* styleproperty: Use G_PARAM_STATIC_STRINGSMatthias Clasen2017-11-171-5/+5
|
* API: Remove API to set CSS properties from GValuesBenjamin Otte2016-10-161-21/+0
| | | | | | | This API was only used in GtkModifierStyle and GtkStyleProperties and they are both on their way out. CSS properties must now be set using strings via the regular parser API.
* Add a transfer annotationMatthias Clasen2015-12-281-1/+1
| | | | This was confusing me momentarily, so add an explicit annotation.
* css style property: Use gtk_internal_return_if_failMatthias Clasen2015-09-081-6/+7
|
* gtk: Fix various tiny typos in documentation commentsPhilip Withnall2015-02-181-1/+1
| | | | | e.g. Invalid syntax in introspection annotations, typos in object names, accidentally using a gtk-doc comment for an internal function.
* css: Remove _gtk_css_style_property_changes_affect_size()Benjamin Otte2015-01-271-23/+0
| | | | | | ... and _gtk_css_style_property_changes_affect_font(). Replace it with _gtk_css_style_property_get_mask_affecting().
* css: Add _gtk_css_style_property_get_mask_affecting()Benjamin Otte2015-01-271-0/+29
| | | | Computes a bitmask for all properties that affect the given flags.
* css: Remove GtkCssStyleProperty::affects-sizeBenjamin Otte2015-01-271-66/+2
| | | | | ... and GtkCssStyleProperty::affects-font properties. Code now uses GtkCssStyleProperty::affects instead.
* css: Add GtkCssStyleProperty::affects propertyBenjamin Otte2015-01-271-0/+32
|
* css: Move "border-style: none" special case to CssValueNumberSebastian Keller2015-01-211-61/+0
| | | | | This fixes the background being shifted by the border-width even though the border-style was none.
* Fix the buildMatthias Clasen2014-10-241-1/+1
| | | | Some forgotten include path adjustments.
* css: Implement "unset"Benjamin Otte2014-05-111-0/+9
| | | | | | | | | | | | | Quoting the spec: If the cascaded value of a property is the unset keyword, then if it is an inherited property, this is treated as inherit, and if it is not, this is treated as initial. Spec in question: http://dev.w3.org/csswg/css-cascade/ Also use unset in the reset-to-defaults.css we use to reset css in reftests.
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-1/+1
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-1/+1
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: don't use ulink. use markdown insteadWilliam Jon McCann2014-02-041-9/+9
|
* cssstyleproperty: remove unused variableCosimo Cecchi2012-12-131-2/+0
|
* css: Avoid looking up the GtkCssStyleProperty class a lotAlexander Larsson2012-12-101-12/+12
| | | | | Instead of constantly looking up the class we just stash it away in class_init.
* css: Add _gtk_css_style_property_affects_fontAlexander Larsson2012-12-061-0/+44
| | | | This checks if a style_update affects the font.
* styleproperty: Add _gtk_css_style_property_changes_affect_size()Benjamin Otte2012-11-301-0/+13
| | | | | This gives fast access to the question of wether a style update requires a resize.
* styleproperty: Add an affects-size propertyBenjamin Otte2012-11-301-0/+31
| | | | | This property will be used to avoid gtk_widget_queue_resize() calls in favor of gtk_widget_queue_draw().
* css: Move special case code for border widthsBenjamin Otte2012-10-021-0/+62
| | | | | | | | | | | | | We need to store the border widths independant of them being set to 0 by border styles, because otherwise we'd need to track that dependency and recompute on changes, and I don't want to add more entries to GtkCssDependencies just for this special case. By moving the code that does the setting to 0 from the compute stage to the query stage, we can achieve this. Now we need to just be aware that the actual value stored is not set to 0 when we use gtk_css_computed_values_get_value().
* cssstyleproperty: Get rid of unused APIBenjamin Otte2012-08-281-67/+0
| | | | | | | Both _gtk_css_style_property_print_value() and _gtk_css_style_property_compute_value() aren't necessary anymore and are replaced by _gtk_css_value_print() and _gtk_css_value_comptue() respectively.
* cssstyleproperty: Call _compute() in the compute functionBenjamin Otte2012-08-281-1/+1
| | | | ... instead pof just reffing the value.
* styleproperty: Remove base argumentBenjamin Otte2012-05-111-2/+1
| | | | | from _gtk_style_property_parse_value(). The GtkCssParser takes care of that now.
* cssstyleproperty: Remove base argumentBenjamin Otte2012-05-111-3/+2
| | | | from parse functions.
* styleproperty: Remove equal_func vfuncBenjamin Otte2012-04-171-32/+0
| | | | | | | | Equality tests are done with _gtk_css_value_equal(). There is no need to do it per-property, equal values will still be equal. This essentially reverts 24f5d54329e028347bd76af42e86ed190c1229a2 and 92c7a7171e1240b6d961ee5b6f9ab6b596e98904.
* cssstyleproperty: Add _gtk_css_style_property_is_animated()Benjamin Otte2012-04-171-1/+33
|
* cssstyleproperty: Make assign_value a vfuncBenjamin Otte2012-04-171-2/+7
|
* cssstyleproperty: Make query func a vfuncBenjamin Otte2012-04-171-48/+5
| | | | This will be needed soon.
* cssstyelproperty: Rempove specified-type and computed-type propsBenjamin Otte2012-04-171-65/+0
| | | | | This removes the necessity to keep a GType associated with style properties and code can now make use of GtkCssValue completely.
* styleproperty: Remove default parse functionBenjamin Otte2012-04-171-14/+2
| | | | ... and assert every style property brings its own.
* styleproperty: Simplify compute_value functionBenjamin Otte2012-04-171-1/+1
| | | | | | The compute_value fallback path is only needed for custom properties, the real style properties have custom compute functions if they need them already.
* cssvalue: Add _gtk_css_value_equal()Benjamin Otte2012-04-171-1/+1
| | | | | | | | | | | | | | | | For now, we return FALSE for all default css values, so this is not very useful. I also think of this as an optimization equal, not a guaranteed equal, because we don't even have a notion of what "equal" means. For example, for background-repeat, "repeat, repeat" and "repeat" are functionally equivalent. But the cssvalue has no idea that it's used for background-repeat. As a more complicated example, "repeat, no-repeat" and "repeat" are equal to what one sees as long as there's only one image listed background-image-source. But once you start transition'ing to an image with 2 sources, it's different...
* styleproperty: Make _gtk_style_property_parse_value() return a CssValueBenjamin Otte2012-04-171-36/+27
| | | | Also split out initial/inherit handling into a custom GtkCssValue class.
* css: Remove _gtk_css_style_property_is_specified_type()Benjamin Otte2012-04-171-26/+0
| | | | That check is going to be refactored away.
* styleproperty: Make _gtk_style_property_query() take a GValueBenjamin Otte2012-04-171-11/+17
| | | | | ... and don't make it return a GtkCssValue. We want to use this for compat with the old GValue APIs after all...
* styleproperty: Make print_func take a GtkCssValueBenjamin Otte2012-04-171-6/+3
| | | | | Also, constify GtkCssValue getters, so we can pass a const GtkCssValue to the print_func.
* styleproperty: Add a function to compare values for equalityBenjamin Otte2012-04-171-0/+31
| | | | and default to never compare them as equal.
* styleproperty: 3rd hotfix for a 3-line patchBenjamin Otte2012-04-101-1/+1
| | | | | | I really should not write code sometimes... Copy/paste error this time.
* csscustomproperty: Redo RGBA/Color parsingBenjamin Otte2012-04-091-0/+4
| | | | | This fixes custom parse functions returning RGBA values where we expected symbolic colors.
* css: Use GtkCssValues instead of GValue in the css machineryAlexander Larsson2012-03-081-46/+44
| | | | | | Also, in places where we're computing a new CssValue based on an old one, make sure that if nothing changes we're returning a reference to the old one, rather than creating a new identical instance.
* Change FSF AddressJavier Jardón2012-02-271-2/+1
|