mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
events: Drop GDK_DESTROY
No backend is emitting GDK_DESTROY events anymore, so no need to carry this around.
This commit is contained in:
parent
7db8be93f4
commit
9a1497f582
@ -793,7 +793,6 @@ gdk_event_get_time (const GdkEvent *event)
|
|||||||
case GDK_FOCUS_CHANGE:
|
case GDK_FOCUS_CHANGE:
|
||||||
case GDK_NOTHING:
|
case GDK_NOTHING:
|
||||||
case GDK_DELETE:
|
case GDK_DELETE:
|
||||||
case GDK_DESTROY:
|
|
||||||
case GDK_GRAB_BROKEN:
|
case GDK_GRAB_BROKEN:
|
||||||
case GDK_EVENT_LAST:
|
case GDK_EVENT_LAST:
|
||||||
default:
|
default:
|
||||||
@ -866,7 +865,6 @@ gdk_event_get_state (const GdkEvent *event,
|
|||||||
case GDK_DROP_START:
|
case GDK_DROP_START:
|
||||||
case GDK_NOTHING:
|
case GDK_NOTHING:
|
||||||
case GDK_DELETE:
|
case GDK_DELETE:
|
||||||
case GDK_DESTROY:
|
|
||||||
case GDK_GRAB_BROKEN:
|
case GDK_GRAB_BROKEN:
|
||||||
case GDK_PAD_BUTTON_PRESS:
|
case GDK_PAD_BUTTON_PRESS:
|
||||||
case GDK_PAD_BUTTON_RELEASE:
|
case GDK_PAD_BUTTON_RELEASE:
|
||||||
|
@ -131,7 +131,6 @@ typedef union _GdkEvent GdkEvent;
|
|||||||
* @GDK_DELETE: the window manager has requested that the toplevel surface be
|
* @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
|
* hidden or destroyed, usually when the user clicks on a special icon in the
|
||||||
* title bar.
|
* title bar.
|
||||||
* @GDK_DESTROY: the surface has been destroyed.
|
|
||||||
* @GDK_MOTION_NOTIFY: the pointer (usually a mouse) has moved.
|
* @GDK_MOTION_NOTIFY: the pointer (usually a mouse) has moved.
|
||||||
* @GDK_BUTTON_PRESS: a mouse button has been pressed.
|
* @GDK_BUTTON_PRESS: a mouse button has been pressed.
|
||||||
* @GDK_BUTTON_RELEASE: a mouse button has been released.
|
* @GDK_BUTTON_RELEASE: a mouse button has been released.
|
||||||
@ -187,7 +186,6 @@ typedef enum
|
|||||||
{
|
{
|
||||||
GDK_NOTHING,
|
GDK_NOTHING,
|
||||||
GDK_DELETE,
|
GDK_DELETE,
|
||||||
GDK_DESTROY,
|
|
||||||
GDK_MOTION_NOTIFY,
|
GDK_MOTION_NOTIFY,
|
||||||
GDK_BUTTON_PRESS,
|
GDK_BUTTON_PRESS,
|
||||||
GDK_BUTTON_RELEASE,
|
GDK_BUTTON_RELEASE,
|
||||||
|
@ -4094,7 +4094,6 @@ add_event_mark (GdkEvent *event,
|
|||||||
case GDK_PAD_GROUP_MODE:
|
case GDK_PAD_GROUP_MODE:
|
||||||
case GDK_GRAB_BROKEN:
|
case GDK_GRAB_BROKEN:
|
||||||
case GDK_DELETE:
|
case GDK_DELETE:
|
||||||
case GDK_DESTROY:
|
|
||||||
case GDK_FOCUS_CHANGE:
|
case GDK_FOCUS_CHANGE:
|
||||||
case GDK_PROXIMITY_IN:
|
case GDK_PROXIMITY_IN:
|
||||||
case GDK_PROXIMITY_OUT:
|
case GDK_PROXIMITY_OUT:
|
||||||
|
@ -1841,7 +1841,6 @@ gtk_main_do_event (GdkEvent *event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case GDK_DELETE:
|
case GDK_DELETE:
|
||||||
case GDK_DESTROY:
|
|
||||||
g_object_ref (target_widget);
|
g_object_ref (target_widget);
|
||||||
if (!gtk_window_group_get_current_grab (window_group) ||
|
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)
|
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;
|
widget = NULL;
|
||||||
if (event && event->any.surface &&
|
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);
|
widget = gtk_native_get_for_surface (event->any.surface);
|
||||||
|
|
||||||
return widget;
|
return widget;
|
||||||
|
Loading…
Reference in New Issue
Block a user