[gtk+/wip/otte/gtk4: 123/127] gdk: Remove leftover structs from ClientMessage days
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/gtk4: 123/127] gdk: Remove leftover structs from ClientMessage days
- Date: Sat, 8 Oct 2016 03:20:33 +0000 (UTC)
commit aeb7a18a5f549f087fc797ee6b6dfbe7bc2edaeb
Author: Benjamin Otte <otte redhat com>
Date: Sat Oct 8 00:20:30 2016 +0200
gdk: Remove leftover structs from ClientMessage days
gdk/gdkinternals.h | 7 -------
gdk/win32/gdkevents-win32.c | 19 -------------------
2 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index ba7a700..db3621a 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -41,7 +41,6 @@ G_BEGIN_DECLS
/* Debugging support */
typedef struct _GdkEventFilter GdkEventFilter;
-typedef struct _GdkClientFilter GdkClientFilter;
typedef enum {
GDK_EVENT_FILTER_REMOVED = 1 << 0
@@ -54,12 +53,6 @@ struct _GdkEventFilter {
guint ref_count;
};
-struct _GdkClientFilter {
- GdkAtom type;
- GdkFilterFunc function;
- gpointer data;
-};
-
typedef enum {
GDK_DEBUG_MISC = 1 << 0,
GDK_DEBUG_EVENTS = 1 << 1,
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 363193a..7c64117 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -103,7 +103,6 @@ static gboolean gdk_event_dispatch (GSource *source,
/* Private variable declarations
*/
-static GList *client_filters; /* Filters for client messages */
extern gint _gdk_input_ignore_core;
GdkCursor *_gdk_win32_grab_cursor;
@@ -2182,24 +2181,6 @@ gdk_event_translate (MSG *msg,
node = _gdk_event_queue_append (display, event);
- tmp_list = client_filters;
- while (tmp_list)
- {
- GdkClientFilter *filter = tmp_list->data;
-
- tmp_list = tmp_list->next;
-
- if (filter->type == GDK_POINTER_TO_ATOM (msg->wParam))
- {
- GDK_NOTE (EVENTS, g_print (" (match)"));
-
- result = (*filter->function) (msg, event, filter->data);
-
- if (result != GDK_FILTER_CONTINUE)
- break;
- }
- }
-
switch (result)
{
case GDK_FILTER_REMOVE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]