events: Drop GDK_DESTROY

No backend is emitting GDK_DESTROY events anymore, so no
need to carry this around.
This commit is contained in:
Matthias Clasen 2020-02-15 11:19:59 -05:00
parent 7db8be93f4
commit 9a1497f582
4 changed files with 1 additions and 7 deletions

View File

@ -793,7 +793,6 @@ gdk_event_get_time (const GdkEvent *event)
case GDK_FOCUS_CHANGE:
case GDK_NOTHING:
case GDK_DELETE:
case GDK_DESTROY:
case GDK_GRAB_BROKEN:
case GDK_EVENT_LAST:
default:
@ -866,7 +865,6 @@ gdk_event_get_state (const GdkEvent *event,
case GDK_DROP_START:
case GDK_NOTHING:
case GDK_DELETE:
case GDK_DESTROY:
case GDK_GRAB_BROKEN:
case GDK_PAD_BUTTON_PRESS:
case GDK_PAD_BUTTON_RELEASE:

View File

@ -131,7 +131,6 @@ typedef union _GdkEvent GdkEvent;
* @GDK_DELETE: the window manager has requested that the toplevel surface be
* hidden or destroyed, usually when the user clicks on a special icon in the
* title bar.
* @GDK_DESTROY: the surface has been destroyed.
* @GDK_MOTION_NOTIFY: the pointer (usually a mouse) has moved.
* @GDK_BUTTON_PRESS: a mouse button has been pressed.
* @GDK_BUTTON_RELEASE: a mouse button has been released.
@ -187,7 +186,6 @@ typedef enum
{
GDK_NOTHING,
GDK_DELETE,
GDK_DESTROY,
GDK_MOTION_NOTIFY,
GDK_BUTTON_PRESS,
GDK_BUTTON_RELEASE,

View File

@ -4094,7 +4094,6 @@ add_event_mark (GdkEvent *event,
case GDK_PAD_GROUP_MODE:
case GDK_GRAB_BROKEN:
case GDK_DELETE:
case GDK_DESTROY:
case GDK_FOCUS_CHANGE:
case GDK_PROXIMITY_IN:
case GDK_PROXIMITY_OUT:

View File

@ -1841,7 +1841,6 @@ gtk_main_do_event (GdkEvent *event)
break;
case GDK_DELETE:
case GDK_DESTROY:
g_object_ref (target_widget);
if (!gtk_window_group_get_current_grab (window_group) ||
GTK_WIDGET (gtk_widget_get_root (gtk_window_group_get_current_grab (window_group))) == target_widget)
@ -2349,7 +2348,7 @@ gtk_get_event_widget (const GdkEvent *event)
widget = NULL;
if (event && event->any.surface &&
(event->any.type == GDK_DESTROY || !gdk_surface_is_destroyed (event->any.surface)))
(!gdk_surface_is_destroyed (event->any.surface)))
widget = gtk_native_get_for_surface (event->any.surface);
return widget;