diff options
author | Benjamin Otte <otte@redhat.com> | 2020-02-12 23:45:51 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-02-13 07:36:38 +0100 |
commit | 052d0f6e6004b7c791cfbb891c70ab0bb316c228 (patch) | |
tree | 181c4587a0a2b205e1433bc143ab6564bf160200 /gdk/gdkcairo.h | |
parent | 8f6cab656082c9a5c3989f355bd5385d4439edd3 (diff) | |
download | gtk+-052d0f6e6004b7c791cfbb891c70ab0bb316c228.tar.gz |
gdk: Remove gdk_cairo_get_clip_rectangle()
The function is fundamentally broken for unbounded surfaces.
If a surface is unbounded, we cannot represent this as a
cairo_rectangle_int_t, and using the return value doesn't work because
it's already used for something else.
In GTK3, unbounded surfaces aren't a problem, but GTK4 uses recording
surfaces.
So better remove that function before we keep using it and using it
wrong.
Diffstat (limited to 'gdk/gdkcairo.h')
-rw-r--r-- | gdk/gdkcairo.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdk/gdkcairo.h b/gdk/gdkcairo.h index c4e2d3836c..49b4117eb0 100644 --- a/gdk/gdkcairo.h +++ b/gdk/gdkcairo.h @@ -30,10 +30,6 @@ G_BEGIN_DECLS GDK_AVAILABLE_IN_ALL -gboolean gdk_cairo_get_clip_rectangle (cairo_t *cr, - GdkRectangle *rect); - -GDK_AVAILABLE_IN_ALL void gdk_cairo_set_source_rgba (cairo_t *cr, const GdkRGBA *rgba); GDK_AVAILABLE_IN_ALL |