summaryrefslogtreecommitdiff
path: root/src/ui/theme.h
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-31 07:17:47 -0400
committerraveit65 <[email protected]>2019-06-01 14:49:43 +0200
commit06628329fc769efb2bcd83d9bd3a2dc742d94220 (patch)
treec4529633b9e1c02246290e2621bd4fda080bbace /src/ui/theme.h
parente01cfaee4cf5f07095be58bd33ab879377811f93 (diff)
downloadmarco-06628329fc769efb2bcd83d9bd3a2dc742d94220.tar.bz2
marco-06628329fc769efb2bcd83d9bd3a2dc742d94220.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.h12
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);