summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimagebuiltin.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.