diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-29 22:40:01 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-29 22:40:01 -0400 |
commit | 4d012a6d95f68aac4be821e2e6d96c8ac48f742f (patch) | |
tree | 2ee060599c5ee5a504585383ec5622f6970a33fb /gdk | |
parent | c1eedf6845ca0fdf05f56e08de9162a25c9e7aa3 (diff) | |
download | gtk+-4d012a6d95f68aac4be821e2e6d96c8ac48f742f.tar.gz |
Rename gdk_surface_queue_expose
We don't have expose events anymore; instead, there
is a ::render signal. So rename queue_expose to
queue_render to match.
Update all callers.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdksurface.c | 36 | ||||
-rw-r--r-- | gdk/gdksurface.h | 2 |
2 files changed, 18 insertions, 20 deletions
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index 57febdc98f..a26754b694 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -1355,15 +1355,15 @@ gdk_surface_paint_on_clock (GdkFrameClock *clock, g_object_unref (surface); } -/** +/* * gdk_surface_invalidate_rect: * @surface: a #GdkSurface * @rect: (allow-none): rectangle to invalidate or %NULL to invalidate the whole * surface * - * A convenience wrapper around gdk_surface_invalidate_region() which - * invalidates a rectangular region. See - * gdk_surface_invalidate_region() for details. + * A convenience wrapper around gdk_surface_invalidate_region() + * which invalidates a rectangular region. + * See gdk_surface_invalidate_region() for details. **/ void gdk_surface_invalidate_rect (GdkSurface *surface, @@ -1406,19 +1406,17 @@ impl_surface_add_update_area (GdkSurface *impl_surface, } /** - * gdk_surface_queue_expose: + * gdk_surface_queue_render: * @surface: a #GdkSurface * - * Forces an expose event for @surface to be scheduled. - * - * If the invalid area of @surface is empty, an expose event will - * still be emitted. Its invalid region will be empty. + * Forces a #GdkSurface::render signal emission for @surface + * to be scheduled. * * This function is useful for implementations that track invalid * regions on their own. **/ void -gdk_surface_queue_expose (GdkSurface *surface) +gdk_surface_queue_render (GdkSurface *surface) { cairo_region_t *region; @@ -1434,12 +1432,12 @@ gdk_surface_queue_expose (GdkSurface *surface) * @surface: a #GdkSurface * @region: a #cairo_region_t * - * Adds @region to the update area for @surface. The update area is the - * region that needs to be redrawn, or “dirty region.” + * Adds @region to the update area for @surface. The update area is + * the region that needs to be redrawn, or “dirty region.” * - * GDK will process all updates whenever the frame clock schedules a redraw, - * so there’s no need to do forces redraws manually, you just need to - * invalidate regions that you know should be redrawn. + * GDK will process all updates whenever the frame clock schedules a + * redraw, so there’s no need to do forces redraws manually, you just + * need to invalidate regions that you know should be redrawn. **/ void gdk_surface_invalidate_region (GdkSurface *surface, @@ -1473,8 +1471,8 @@ gdk_surface_invalidate_region (GdkSurface *surface, * _gdk_surface_clear_update_area: * @surface: a #GdkSurface. * - * Internal function to clear the update area for a surface. This - * is called when the surface is hidden or destroyed. + * Internal function to clear the update area for a surface. + * This is called when the surface is hidden or destroyed. **/ void _gdk_surface_clear_update_area (GdkSurface *surface) @@ -1497,8 +1495,8 @@ _gdk_surface_clear_update_area (GdkSurface *surface) * Temporarily freezes a surface such that it won’t receive expose * events. The surface will begin receiving expose events again when * gdk_surface_thaw_updates() is called. If gdk_surface_freeze_updates() - * has been called more than once, gdk_surface_thaw_updates() must be called - * an equal number of times to begin processing exposes. + * has been called more than once, gdk_surface_thaw_updates() must be + * called an equal number of times to begin processing exposes. **/ void gdk_surface_freeze_updates (GdkSurface *surface) diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h index 60d80558bf..077c012a3f 100644 --- a/gdk/gdksurface.h +++ b/gdk/gdksurface.h @@ -206,7 +206,7 @@ GDK_AVAILABLE_IN_ALL void gdk_surface_beep (GdkSurface *surface); GDK_AVAILABLE_IN_ALL -void gdk_surface_queue_expose (GdkSurface *surface); +void gdk_surface_queue_render (GdkSurface *surface); GDK_AVAILABLE_IN_ALL GdkFrameClock* gdk_surface_get_frame_clock (GdkSurface *surface); |