diff options
author | Benjamin Otte <otte@redhat.com> | 2010-10-06 18:44:51 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-12-02 20:17:28 +0100 |
commit | 65dde2f92f8d2fb78688966d2258848383270877 (patch) | |
tree | 9cb028d6655eedd342b19686b5fdbc9fd54c5446 /gdk/gdkcairo.c | |
parent | d154344a439fd6e07d092cfc2cbdb132bb26c9e2 (diff) | |
download | gtk+-65dde2f92f8d2fb78688966d2258848383270877.tar.gz |
API: Remove gdk_cairo_reset_clip()
You should not ever ever ever call cairo_reset_clip(). If you do, your
code is broken and you deserve everything you get.
And we should definitely not support this insanity.
Diffstat (limited to 'gdk/gdkcairo.c')
-rw-r--r-- | gdk/gdkcairo.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c index 197e2c41e9..a554241fff 100644 --- a/gdk/gdkcairo.c +++ b/gdk/gdkcairo.c @@ -79,34 +79,6 @@ gdk_cairo_create (GdkDrawable *drawable) } /** - * gdk_cairo_reset_clip: - * @cr: a #cairo_t - * @drawable: a #GdkDrawable - * - * Resets the clip region for a Cairo context created by gdk_cairo_create(). - * - * This resets the clip region to the "empty" state for the given drawable. - * This is required for non-native windows since a direct call to - * cairo_reset_clip() would unset the clip region inherited from the - * drawable (i.e. the window clip region), and thus let you e.g. - * draw outside your window. - * - * This is rarely needed though, since most code just create a new cairo_t - * using gdk_cairo_create() each time they want to draw something. - * - * Since: 2.18 - **/ -void -gdk_cairo_reset_clip (cairo_t *cr, - GdkDrawable *drawable) -{ - cairo_reset_clip (cr); - - if (GDK_DRAWABLE_GET_CLASS (drawable)->set_cairo_clip) - GDK_DRAWABLE_GET_CLASS (drawable)->set_cairo_clip (drawable, cr); -} - -/** * gdk_cairo_get_clip_rectangle: * @cr: a cairo context * @rect: (out) (allow-none): return location for the clip, or %NULL |