gdk: Make event-related apis private

Without a way to create events, there is no point
in allowing gdk_display_put_event to be used from
the outside. And little good can come out of using
the other apis, so just make them all private.
This commit is contained in:
Matthias Clasen 2020-05-18 09:02:13 -04:00
parent 2503251576
commit 48f8affb2c
3 changed files with 6 additions and 14 deletions

View File

@ -79,10 +79,6 @@ gdk_display_sync
gdk_display_flush
gdk_display_close
gdk_display_is_closed
gdk_display_get_event
gdk_display_peek_event
gdk_display_put_event
gdk_display_has_pending
gdk_display_is_rgba
gdk_display_is_composited
gdk_display_get_default_group

View File

@ -68,16 +68,6 @@ gboolean gdk_display_is_rgba (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
gboolean gdk_display_supports_input_shapes (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
GdkEvent* gdk_display_get_event (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
GdkEvent* gdk_display_peek_event (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
void gdk_display_put_event (GdkDisplay *display,
GdkEvent *event);
GDK_AVAILABLE_IN_ALL
gboolean gdk_display_has_pending (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
GdkDisplay *gdk_display_get_default (void);

View File

@ -244,6 +244,12 @@ void gdk_display_emit_opened (GdkDisplay *display
void gdk_display_setting_changed (GdkDisplay *display,
const char *name);
GdkEvent * gdk_display_get_event (GdkDisplay *display);
GdkEvent * gdk_display_peek_event (GdkDisplay *display);
void gdk_display_put_event (GdkDisplay *display,
GdkEvent *event);
gboolean gdk_display_has_pending (GdkDisplay *display);
G_END_DECLS