[gtk] gdk: Remove gdk_surface_invalidate_rect() from public API
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gdk: Remove gdk_surface_invalidate_rect() from public API
- Date: Sun, 21 Apr 2019 18:09:27 +0000 (UTC)
commit 6e59c5c84368f9d404a7e03b92d9bafd28f5c727
Author: Benjamin Otte <otte redhat com>
Date: Sun Apr 21 20:08:05 2019 +0200
gdk: Remove gdk_surface_invalidate_rect() from public API
It's still available for backends, but public API (read: GTK) is
meant to only call gdk_surface_queue_expose() and track its
invalid region itself.
docs/reference/gdk/gdk4-sections.txt | 2 --
gdk/gdkinternals.h | 4 ++++
gdk/gdksurface.h | 6 ------
3 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 04b77ad3b4..2a9afa8110 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -233,8 +233,6 @@ gdk_surface_create_gl_context
gdk_surface_create_vulkan_context
<SUBSECTION>
-gdk_surface_invalidate_rect
-gdk_surface_invalidate_region
gdk_surface_queue_expose
gdk_surface_freeze_updates
gdk_surface_thaw_updates
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index eece0397d3..35b5cccedd 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -282,6 +282,10 @@ GdkSurface* gdk_surface_new (GdkDisplay *display,
GdkSurfaceAttr *attributes);
void _gdk_surface_destroy (GdkSurface *surface,
gboolean foreign_destroy);
+void gdk_surface_invalidate_rect (GdkSurface *surface,
+ const GdkRectangle *rect);
+void gdk_surface_invalidate_region (GdkSurface *surface,
+ const cairo_region_t *region);
void _gdk_surface_clear_update_area (GdkSurface *surface);
void _gdk_surface_update_size (GdkSurface *surface);
gboolean _gdk_surface_update_viewable (GdkSurface *surface);
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 88722782db..e35a867af7 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -740,12 +740,6 @@ void gdk_surface_begin_move_drag_for_device (GdkSurface *surface,
/* Interface for dirty-region queueing */
GDK_AVAILABLE_IN_ALL
void gdk_surface_queue_expose (GdkSurface *surface);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_invalidate_rect (GdkSurface *surface,
- const GdkRectangle *rect);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_invalidate_region (GdkSurface *surface,
- const cairo_region_t *region);
GDK_AVAILABLE_IN_ALL
void gdk_surface_freeze_updates (GdkSurface *surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]