[gtk/kill-tree-menu: 50/52] Remove gdk_seat_grab
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-tree-menu: 50/52] Remove gdk_seat_grab
- Date: Sun, 29 Dec 2019 03:07:02 +0000 (UTC)
commit 6a4aa344530c8df11cc6def9f352e36fbf56c541
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 28 09:12:33 2019 -0500
Remove gdk_seat_grab
We are no longer using free-standing grabs
in GTK. The replacement is the autohide
functionality of popup surfaces.
docs/reference/gdk/gdk4-sections.txt | 2 --
gdk/gdkinternals.h | 10 ++++++++++
gdk/gdkseat.c | 1 +
gdk/gdkseat.h | 12 ------------
4 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index a12d9db3b1..0a03539e2b 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -544,8 +544,6 @@ GdkSeatCapabilities
GdkGrabStatus
GdkSeatGrabPrepareFunc
gdk_seat_get_display
-gdk_seat_grab
-gdk_seat_ungrab
gdk_seat_get_capabilities
gdk_seat_get_pointer
gdk_seat_get_keyboard
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 7a0322965d..12abe1186d 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -266,6 +266,16 @@ void gdk_surface_get_geometry (GdkSurface *surface,
GdkGLContext *gdk_surface_get_shared_data_gl_context (GdkSurface *surface);
+GdkGrabStatus gdk_seat_grab (GdkSeat *seat,
+ GdkSurface *surface,
+ GdkSeatCapabilities capabilities,
+ gboolean owner_events,
+ GdkCursor *cursor,
+ const GdkEvent *event,
+ GdkSeatGrabPrepareFunc prepare_func,
+ gpointer prepare_func_data);
+void gdk_seat_ungrab (GdkSeat *seat);
+
G_END_DECLS
#endif /* __GDK_INTERNALS_H__ */
diff --git a/gdk/gdkseat.c b/gdk/gdkseat.c
index 6164d4f2ca..35a8446a47 100644
--- a/gdk/gdkseat.c
+++ b/gdk/gdkseat.c
@@ -25,6 +25,7 @@
#include "gdkseatprivate.h"
#include "gdkdeviceprivate.h"
#include "gdkintl.h"
+#include "gdkinternals.h"
/**
* SECTION:gdkseat
diff --git a/gdk/gdkseat.h b/gdk/gdkseat.h
index e26676e459..87e36a3c7a 100644
--- a/gdk/gdkseat.h
+++ b/gdk/gdkseat.h
@@ -82,18 +82,6 @@ struct _GdkSeat
GDK_AVAILABLE_IN_ALL
GType gdk_seat_get_type (void) G_GNUC_CONST;
-GDK_AVAILABLE_IN_ALL
-GdkGrabStatus gdk_seat_grab (GdkSeat *seat,
- GdkSurface *surface,
- GdkSeatCapabilities capabilities,
- gboolean owner_events,
- GdkCursor *cursor,
- const GdkEvent *event,
- GdkSeatGrabPrepareFunc prepare_func,
- gpointer prepare_func_data);
-GDK_AVAILABLE_IN_ALL
-void gdk_seat_ungrab (GdkSeat *seat);
-
GDK_AVAILABLE_IN_ALL
GdkDisplay * gdk_seat_get_display (GdkSeat *seat);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]