gdk: Remove gdk_flush()

If you need to flush a display, use gdk_display_flush().

There is never a need to flush displays you don't know about.
This commit is contained in:
Benjamin Otte 2017-11-17 08:35:25 +01:00
parent 8d7d5343d8
commit f4ec6290f8
3 changed files with 0 additions and 27 deletions

View File

@ -80,7 +80,6 @@ gdk_display_device_is_grabbed
gdk_display_beep
gdk_display_sync
gdk_display_flush
gdk_flush
gdk_display_close
gdk_display_is_closed
gdk_display_get_event

View File

@ -570,30 +570,6 @@ gdk_display_put_event (GdkDisplay *display,
gdk_display_put_event_nocopy (display, gdk_event_copy (event));
}
/**
* gdk_flush:
*
* Flushes the output buffers of all display connections and waits
* until all requests have been processed.
*
* This is rarely needed by applications.
*/
void
gdk_flush (void)
{
GSList *list, *l;
list = gdk_display_manager_list_displays (gdk_display_manager_get ());
for (l = list; l; l = l->next)
{
GdkDisplay *display = l->data;
GDK_DISPLAY_GET_CLASS (display)->sync (display);
}
g_slist_free (list);
}
static void
generate_grab_broken_event (GdkDisplay *display,
GdkWindow *window,

View File

@ -56,8 +56,6 @@ GDK_AVAILABLE_IN_ALL
void gdk_display_sync (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
void gdk_display_flush (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
void gdk_flush (void);
GDK_AVAILABLE_IN_ALL
void gdk_display_close (GdkDisplay *display);