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