Merge branch 'matthiasc/for-master' into 'master'

Bring back gdk_display_put_event

See merge request GNOME/gtk!1980
This commit is contained in:
Matthias Clasen 2020-05-29 14:14:02 +00:00
commit 4125eb01ba
4 changed files with 12 additions and 4 deletions

View File

@ -95,6 +95,9 @@ gdk_display_get_setting
gdk_display_get_startup_notification_id
gdk_display_setup_window_visual
<SUBSECTION>
gdk_display_put_event
<SUBSECTION>
gdk_display_map_keyval
gdk_display_map_keycode

View File

@ -466,10 +466,13 @@ gdk_display_peek_event (GdkDisplay *display)
*
* Appends the given event onto the front of the event
* queue for @display.
*
* This function is only useful in very special situations
* and should not be used by applications.
**/
void
gdk_display_put_event (GdkDisplay *display,
GdkEvent *event)
gdk_display_put_event (GdkDisplay *display,
GdkEvent *event)
{
g_return_if_fail (GDK_IS_DISPLAY (display));
g_return_if_fail (event != NULL);

View File

@ -100,6 +100,10 @@ GDK_AVAILABLE_IN_ALL
GdkMonitor * gdk_display_get_monitor_at_surface (GdkDisplay *display,
GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
void gdk_display_put_event (GdkDisplay *display,
GdkEvent *event);
GDK_AVAILABLE_IN_ALL
gboolean gdk_display_map_keyval (GdkDisplay *display,
guint keyval,

View File

@ -246,8 +246,6 @@ void gdk_display_setting_changed (GdkDisplay *display
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);