Benjamin Otte
858c80f33e
render: Replace gtk_style_context_get_border/padding()
...
Use _gtk_style_context_peek_property() instead.
2015-01-19 01:15:20 +01:00
Benjamin Otte
8b11e93a2d
render: Get rid of gtk_style_context_get_color()
...
Use _gtk_style_context_peek_property() instead.
2015-01-19 01:15:19 +01:00
Benjamin Otte
8abc6e06b2
css: Add "-gtk-icon-source: builtin"
...
... 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.
2014-10-21 05:53:19 +02:00
Benjamin Otte
57d24f173a
render: We use CHECKED now, not ACTIVE
...
Update docs and custom rendering of checkmarks and radio buttons
2014-10-21 05:53:19 +02:00
Benjamin Otte
ccf6507f6a
render: Fix uninitialized variables
...
Refactoring for performance in 39097ea2da
caused border_width to be uninitialized when rendering border images.
https://bugzilla.gnome.org/show_bug.cgi?id=738483
2014-10-15 02:16:24 +02:00
Benjamin Otte
39097ea2da
render: Optimize the no-borders case to exit early
2014-10-10 00:27:46 +02:00
Benjamin Otte
05460f4982
render: Make rendering the background a single function
2014-10-08 05:20:30 +02:00
Benjamin Otte
3c50c0988a
render: Overhaul gtk_render_handle()
...
The code did weird things with drawing backgrounds sometimes but not
really. Now it does this:
(1) render a background
(2) render a frame
(3) render an icon
- if no icon exists, draw the generic handle icon
2014-10-08 05:20:30 +02:00
Benjamin Otte
c39bd623f6
colorswatch: Render background properly
...
We want to render a background *and* the current color (if there is
one).
This also adds a custom function gtk_render_add_content_path() which
adds the path of the current content area to a cairo_t.
2014-10-08 05:20:30 +02:00
Benjamin Otte
c543ddab3a
theming: Use gtk_style_context_peek_property()
...
instead of outdated accessors.
2014-10-03 06:18:06 +02:00
Benjamin Otte
a0bf0a0f70
themingengine: Call real API render functions
...
No need to call the private versions anymore now that the real ones
don't call into the theming engine.
2014-10-03 06:18:05 +02:00
Benjamin Otte
4d9d655b4e
themingengine: Stop using it
...
Instead, call the default theme engine's code directly.
2014-10-03 06:18:05 +02:00
Benjamin Otte
23948d6a3a
themingengine: Move actual render functions to gtkrender.c
...
GtkThemingEngine just always calls
gtk_do_render_foo(engine->priv->context, ...)
now. Other than that, the code is unchanged.
2014-10-03 06:18:05 +02:00
Benjamin Otte
d3c147a62d
stylecontext: Split render functions out into gtkrender.[ch]
2014-10-03 06:18:05 +02:00