[gtk+] gdk: Remove gdk_flush()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Remove gdk_flush()
- Date: Fri, 17 Nov 2017 07:37:13 +0000 (UTC)
commit f4ec6290f88e0c3ce2fdbb9bb702999f6584f694
Author: Benjamin Otte <otte redhat com>
Date: Fri Nov 17 08:35:25 2017 +0100
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.
docs/reference/gdk/gdk4-sections.txt | 1 -
gdk/gdkdisplay.c | 24 ------------------------
gdk/gdkdisplay.h | 2 --
3 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 913b365..daef793 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -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
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index a189892..5580c93 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -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,
diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h
index 12ce04f..d8aad24 100644
--- a/gdk/gdkdisplay.h
+++ b/gdk/gdkdisplay.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]