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.
This commit is contained in:
Matthias Clasen 2020-07-29 22:30:44 -04:00
parent 9722bb4d9e
commit c1eedf6845
4 changed files with 8 additions and 11 deletions

View File

@ -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>

View File

@ -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__ */

View File

@ -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
*

View File

@ -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);