[gtk/surface-cleanup: 1/2] gdk: Stop exporting gdk_surface_freeze_updates
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/surface-cleanup: 1/2] gdk: Stop exporting gdk_surface_freeze_updates
- Date: Thu, 30 Jul 2020 02:43:25 +0000 (UTC)
commit c1eedf6845ca0fdf05f56e08de9162a25c9e7aa3
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 29 22:30:44 2020 -0400
gdk: Stop exporting gdk_surface_freeze_updates
The only legitimate use for freezing the frame clock
is in GDK backends. Exporting this function for
applications makes no sense.
docs/reference/gdk/gdk4-sections.txt | 2 --
gdk/gdkinternals.h | 4 ++++
gdk/gdksurface.c | 8 ++++----
gdk/gdksurface.h | 5 -----
4 files changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 9b5973fb62..d8245a6d26 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -191,8 +191,6 @@ gdk_surface_create_cairo_context
<SUBSECTION>
gdk_surface_queue_expose
-gdk_surface_freeze_updates
-gdk_surface_thaw_updates
gdk_surface_get_frame_clock
<SUBSECTION>
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index b21c74a55d..6d7c7518b6 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -394,6 +394,10 @@ void gdk_surface_begin_move_drag (GdkSurface *surface,
int y,
guint32 timestamp);
+void gdk_surface_freeze_updates (GdkSurface *surface);
+void gdk_surface_thaw_updates (GdkSurface *surface);
+
+
G_END_DECLS
#endif /* __GDK_INTERNALS_H__ */
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 62fc8196f6..57febdc98f 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1429,7 +1429,7 @@ gdk_surface_queue_expose (GdkSurface *surface)
cairo_region_destroy (region);
}
-/**
+/*
* gdk_surface_invalidate_region:
* @surface: a #GdkSurface
* @region: a #cairo_region_t
@@ -1469,7 +1469,7 @@ gdk_surface_invalidate_region (GdkSurface *surface,
cairo_region_destroy (visible_region);
}
-/**
+/*
* _gdk_surface_clear_update_area:
* @surface: a #GdkSurface.
*
@@ -1490,7 +1490,7 @@ _gdk_surface_clear_update_area (GdkSurface *surface)
}
}
-/**
+/*
* gdk_surface_freeze_updates:
* @surface: a #GdkSurface
*
@@ -1510,7 +1510,7 @@ gdk_surface_freeze_updates (GdkSurface *surface)
_gdk_frame_clock_uninhibit_freeze (surface->frame_clock);
}
-/**
+/*
* gdk_surface_thaw_updates:
* @surface: a #GdkSurface
*
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index acd766b259..60d80558bf 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -208,11 +208,6 @@ void gdk_surface_beep (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
void gdk_surface_queue_expose (GdkSurface *surface);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_freeze_updates (GdkSurface *surface);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_thaw_updates (GdkSurface *surface);
-
GDK_AVAILABLE_IN_ALL
GdkFrameClock* gdk_surface_get_frame_clock (GdkSurface *surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]