summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimagebuiltin.c
Commit message (Collapse)AuthorAgeFilesLines
* Use Graphene init macros for compound literalsEmmanuele Bassi2016-11-211-1/+1
| | | | | The Graphene init macros can now be used for compound literals, which means we need to update our mixed uses.
* snapshot: Add infrastructure to snapshot CSS imagesBenjamin Otte2016-11-161-0/+28
| | | | | Use this infrastructure to render builtin images. Which means from now on, GtkCheckbutton, GtkSpinner and a few others use snapshots.
* API: Remove everything relating to "grip"Benjamin Otte2016-11-161-288/+0
| | | | | | Grips have long been unused in GTK, so remove all support for them. This removes the GTK_STYLE_CLASS_GRIP and the special gtk_render_handle() code for drawing those grips.
* gtk: Mark internal functions as staticEmmanuele Bassi2016-10-171-3/+3
| | | | These functions are only used within their compilation unit.
* cssimage: Make it possible to shrink builtin check/optionmarksBenjamin Otte2016-05-101-30/+10
| | | | ... below 7px of size.
* cssimagebuiltin: Remove icons that don't draw anything anymoreBenjamin Otte2016-05-031-4/+2
|
* cssimagebuiltin: Remove unused variablesBenjamin Otte2016-05-031-19/+1
|
* css: Stop drawing double borders for builtinsMatthias Clasen2016-05-021-34/+1
| | | | | | | The fallback code for rendering builtin checks, radios and expanders was using border parameters. With the generic gadget borders using the same parameters, this was giving double borders.
* gtkcssimagebuiltin: Save/restore around cairo_clipTimm Bäder2016-04-191-0/+2
| | | | | This was previously causing trouble in checkbuttons where the check node didn't have an icon shadow set, e.g. in Raleigh.
* cssvalue: Remove GtkCssDependenciesBenjamin Otte2015-03-181-5/+1
| | | | They are not used anymore.
* css: Move scale to GtkStyleProviderPrivatewip/mir2Benjamin Otte2015-02-061-1/+0
| | | | | | This way, we can remove it as a separate argument from gtk_css_value_compute() and allow computation to only depend on one thing: the style provider.
* render: fix arrow orientationSebastian Keller2015-01-211-3/+2
| | | | | | | | | | The rotation code in the draw_arrow function was assuming that the arrow would be drawn pointing upwards but it was pointing to the right resulting in the rotated arrows pointing in the wrong direction. The recent refactoring caused a pi/2 rotation to be lost. Rather than adding that back somehwere (to lose it again in the future), we just draw the arrow pointing upwards as it is expected to do with a 0 angle.
* render: Remove spinner special-casesBenjamin Otte2015-01-201-4/+31
| | | | | | | | | The spinner is a regular builtin image now. There is no need to go through the shadows code manually anymore as regular items do get shadows automatically. This also allows simplifying the actual spinner drawing code so that it actually works.
* render: Render builtin images as regular CSS imagesBenjamin Otte2015-01-201-0/+6
| | | | | This not only reduces code, but also allows for builtin images to have shadows or be transformed using -gtk-icon-transform.
* render: Don't require passing CSS properties to builtin imagesBenjamin Otte2015-01-201-119/+120
| | | | | Instead, make the buiultin image get those properties itself in the compute vfunc.
* render: Only render 4 different arrowsBenjamin Otte2015-01-201-2/+25
| | | | | | | | Instead of supporting every angle, just support top, right, bottom and left and round the angle to one of those directions. Adwaita overrides arrows anyway and doesn't even look at the angle, so this should not be a problem.
* render: Don't pass junction sides to builtin imageBenjamin Otte2015-01-201-35/+31
| | | | | Instead, split the grip into 8 different builtin images (one for each side and corner).
* render: Extend builtin images to account for statesBenjamin Otte2015-01-201-19/+65
| | | | | We add to the enum to account for the images generated for different states.
* render: Move code for rendering builtin imagesBenjamin Otte2015-01-201-5/+789
| | | | | | | | Also, make it have a generic entry point with gtk_css_image_builtin_draw(). The only feature lost so is the drawing of shadows for spinners, but that will come back later.
* cssstyle: Rename GtkCssComputedValues => GtkCssStyleBenjamin Otte2015-01-071-2/+2
| | | | | This is literally just renaming of the object (and the associated source files). No other changes are in there.
* css: Add "-gtk-icon-source: builtin"Benjamin Otte2014-10-211-0/+127
... and make it the default. This takes over the meaning from "none" for this property in that it draws the fallback builtin image. "none" now literally means no image will be drawn.