diff options
author | Victor Kareh <[email protected]> | 2019-05-31 07:17:47 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-06-05 12:34:34 -0400 |
commit | 9891d7a679a5553b1c155b8ba2af4aa2bc1e1dd6 (patch) | |
tree | 70dd9791f5b66ef3c463cc19182348fcfad2e243 /src/ui/theme.h | |
parent | a1797ff49005fe18a3ae55f763f5a58ade66b480 (diff) | |
download | marco-9891d7a679a5553b1c155b8ba2af4aa2bc1e1dd6.tar.bz2 marco-9891d7a679a5553b1c155b8ba2af4aa2bc1e1dd6.tar.xz |
libmetacity: use cairo to render gradient
upstream commits:
https://gitlab.gnome.org/GNOME/metacity/commit/71d5decc
https://gitlab.gnome.org/GNOME/metacity/commit/127638ca
https://gitlab.gnome.org/GNOME/metacity/commit/fc1a21ea
https://gitlab.gnome.org/GNOME/metacity/commit/431e0418
Diffstat (limited to 'src/ui/theme.h')
-rw-r--r-- | src/ui/theme.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ui/theme.h b/src/ui/theme.h index 0713e2ce..ef6af363 100644 --- a/src/ui/theme.h +++ b/src/ui/theme.h @@ -956,10 +956,14 @@ gboolean meta_draw_op_list_contains (MetaDrawOpList *op_list, MetaGradientSpec* meta_gradient_spec_new (MetaGradientType type); void meta_gradient_spec_free (MetaGradientSpec *desc); -GdkPixbuf* meta_gradient_spec_render (const MetaGradientSpec *desc, - GtkStyleContext *style_gtk, - int width, - int height); +void meta_gradient_spec_render (const MetaGradientSpec *spec, + const MetaAlphaGradientSpec *alpha_spec, + cairo_t *cr, + GtkStyleContext *context, + gint x, + gint y, + gint width, + gint height); gboolean meta_gradient_spec_validate (MetaGradientSpec *spec, GError **error); |