[gtk+] x11: Remove gdk_x11_grab_server()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Remove gdk_x11_grab_server()
- Date: Thu, 2 Nov 2017 11:48:38 +0000 (UTC)
commit 8aa68110bdfba9fcc08a9b9269ae1c4ee2cee588
Author: Benjamin Otte <otte redhat com>
Date: Thu Nov 2 12:47:50 2017 +0100
x11: Remove gdk_x11_grab_server()
Luckily, this one is unused.
docs/reference/gdk/gdk4-sections.txt | 2 --
gdk/x11/gdkmain-x11.c | 27 ---------------------------
gdk/x11/gdkx11utils.h | 4 ----
3 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index def93fb..3b0cc41 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -927,8 +927,6 @@ gdk_x11_window_get_desktop
gdk_x11_window_set_utf8_property
gdk_x11_window_set_frame_extents
gdk_x11_window_set_frame_sync_enabled
-gdk_x11_grab_server
-gdk_x11_ungrab_server
gdk_x11_cursor_get_xcursor
gdk_x11_cursor_get_xdisplay
gdk_x11_keymap_get_group_for_state
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 55b5223..669158d 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -388,30 +388,3 @@ _gdk_x11_region_get_xrectangles (const cairo_region_t *region,
*n_rects = n;
*rects = rectangles;
}
-
-/**
- * gdk_x11_grab_server:
- *
- * Call gdk_x11_display_grab() on the default display.
- * To ungrab the server again, use gdk_x11_ungrab_server().
- *
- * gdk_x11_grab_server()/gdk_x11_ungrab_server() calls can be nested.
- **/
-void
-gdk_x11_grab_server (void)
-{
- gdk_x11_display_grab (gdk_display_get_default ());
-}
-
-/**
- * gdk_x11_ungrab_server:
- *
- * Ungrab the default display after it has been grabbed with
- * gdk_x11_grab_server().
- **/
-void
-gdk_x11_ungrab_server (void)
-{
- gdk_x11_display_ungrab (gdk_display_get_default ());
-}
-
diff --git a/gdk/x11/gdkx11utils.h b/gdk/x11/gdkx11utils.h
index d23b13e..e5604d1 100644
--- a/gdk/x11/gdkx11utils.h
+++ b/gdk/x11/gdkx11utils.h
@@ -55,10 +55,6 @@ G_BEGIN_DECLS
*/
#define GDK_POINTER_TO_XID(pointer) GPOINTER_TO_UINT(pointer)
-GDK_AVAILABLE_IN_ALL
-void gdk_x11_grab_server (void);
-GDK_AVAILABLE_IN_ALL
-void gdk_x11_ungrab_server (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]