diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2018-03-24 13:03:17 +0000 |
---|---|---|
committer | Руслан Ижбулатов <lrn1986@gmail.com> | 2018-03-28 08:33:10 +0000 |
commit | 7ccf6a7df74af888202a942dc806b6b1d3b9c530 (patch) | |
tree | 8601b0cf19df61e87c21d932105f293cd47b339a | |
parent | 5c9ae36c508466aa979848d17eff695e12ac4e75 (diff) | |
download | gtk+-7ccf6a7df74af888202a942dc806b6b1d3b9c530.tar.gz |
GDK W32: remove unused client_message
This seems to be a leftover from API that was removed in
commit c332ac207ab4cac8f4c32aa85cdf6406157340af back in 2011.
The code, as it is now, does not even make sense.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
-rw-r--r-- | gdk/win32/gdkevents-win32.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 2fd804c954..7b3b75f6e5 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -129,7 +129,6 @@ static GdkSurface *mouse_window = NULL; static GdkSurface *mouse_window_ignored_leave = NULL; static gint current_x, current_y; static gint current_root_x, current_root_y; -static UINT client_message; static UINT got_gdk_events_message; static HWND modal_win32_dialog = NULL; @@ -462,7 +461,6 @@ _gdk_events_init (GdkDisplay *display) }; #endif - client_message = RegisterWindowMessage ("GDK_WIN32_CLIENT_MESSAGE"); got_gdk_events_message = RegisterWindowMessage ("GDK_WIN32_GOT_EVENTS"); #if 0 @@ -2378,42 +2376,6 @@ gdk_event_translate (MSG *msg, } } - if (msg->message == client_message) - { - GList *tmp_list; - GdkFilterReturn result = GDK_FILTER_CONTINUE; - GList *node; - - GDK_NOTE (EVENTS, g_print (" client_message")); - - event = gdk_event_new (GDK_NOTHING); - ((GdkEventPrivate *)event)->flags |= GDK_EVENT_PENDING; - - node = _gdk_event_queue_append (display, event); - - switch (result) - { - case GDK_FILTER_REMOVE: - _gdk_event_queue_remove_link (display, node); - g_list_free_1 (node); - gdk_event_free (event); - return_val = TRUE; - goto done; - - case GDK_FILTER_TRANSLATE: - ((GdkEventPrivate *)event)->flags &= ~GDK_EVENT_PENDING; - GDK_NOTE (EVENTS, _gdk_win32_print_event (event)); - return_val = TRUE; - goto done; - - case GDK_FILTER_CONTINUE: - /* No more: Send unknown client messages on to Gtk for it to use */ - GDK_NOTE (EVENTS, _gdk_win32_print_event (event)); - return_val = TRUE; - goto done; - } - } - if (msg->message == aerosnap_message) _gdk_win32_surface_handle_aerosnap (gdk_surface_get_toplevel (window), (GdkWin32AeroSnapCombo) msg->wParam); |