- 21 Feb, 2020 40 commits
-
-
Matthias Clasen authored
Restructure the getters for event fields to be more targeted at particular event types. Update all callers, and replace all direct event struct access with getters. As a side-effect, this drops some unused getters.
-
Matthias Clasen authored
We don't need a separate api to turn on debugging for events.
-
Matthias Clasen authored
Events are refcounted structs, and we generally don't pass these as const.
-
Matthias Clasen authored
GdkEvent is now truly readonly.
-
Matthias Clasen authored
GTK no longer uses this, so we can drop it.
-
Matthias Clasen authored
GTK is no longer relying on this.
-
Matthias Clasen authored
We can now get the target widget from the gesture that we are using to find the event in the first place.
-
Matthias Clasen authored
We already store the events; keep the target widget in addition. This is a step towards getting rid of gdk_event_get_target.
-
Matthias Clasen authored
Make it possible for event controllers to obtain the target widget during handle_event.
-
Matthias Clasen authored
Pass the event propagation target explicitly down to the event controllers. This is a step towards getting rid of gdk_event_set_target.
-
Matthias Clasen authored
We are now sending crossing events (which are the only ones where a related target makes sense) via handle_crossing.
-
Matthias Clasen authored
The event propagation limit should apply to crossing events as well.
-
Matthias Clasen authored
-
Matthias Clasen authored
Instead of relying on gdk's antiquated crossing events, create a new GtkCrossingData struct that contains the actual widgets, and a new event controller vfunc that expects this struct. This also saves us from making sense of X's crossing modes and details, and makes for a generally simpler api. The ::focus-in and ::focus-out signals of GtkEventControllerKey have been replaced by a single ::focus-change signal that takes GtkCrossingData as an argument. All callers have been updated.
-
Matthias Clasen authored
-
Matthias Clasen authored
This is no longer used.
-
Matthias Clasen authored
-
Matthias Clasen authored
This is just a thin wrapper around gdk_event_get_target, so use that directly.
-
Matthias Clasen authored
We want to make events readonly, so stop translating their coordinates and instead pass the translated coordinates separately, when propagating events.
-
Matthias Clasen authored
Events of type GDK_NOTHING are good for nothing.
-
Matthias Clasen authored
-
Matthias Clasen authored
Use gdk_event_ref/unref instead of g_object_ref/unref. Events will stop being object soon.
-
Matthias Clasen authored
These functions are no longer used outside of gdkevents.c.
-
Matthias Clasen authored
Events are effectively readonly in GDK now, so we can just take a reference, no need for a copy.
-
Matthias Clasen authored
-
Matthias Clasen authored
-
Matthias Clasen authored
We are not creating GDK_NOTHING events anymore. Yay
-
Matthias Clasen authored
Make the event translator return a new event, instead of filling in a half-constructed one. Update the two implementation in GdkX11Display and GdkDeviceManagerXI2.
-
Matthias Clasen authored
Instead of passing a half-constructed event and expect it to be filled in, pass the surface as in argument, and add an out argument for a newly constructed GdkEvent.
-
Matthias Clasen authored
The filter functions never look at that event, and we want to get out of the business of passing half- constructed events around.
-
Matthias Clasen authored
The filter functions never look at that event, and we want to get out of the business of passing half- constructed events around.
-
Matthias Clasen authored
No backend is emitting GDK_DESTROY events anymore, so no need to carry this around.
-
Matthias Clasen authored
We don't have child windows anymore, so there is no difference.
-
Matthias Clasen authored
GTK does not differentiate between GDK_DESTROY and GDK_DELETE anyway.
-
Matthias Clasen authored
This is not quite complete and only handles the simple cases.
-
Matthias Clasen authored
Convert all of Broadways event handling to use the new constructors.
-
Matthias Clasen authored
This doesn't work because the constructors aren't exported, so remove the gestures text temporarily, until we figure out how to deal with it.
-
Matthias Clasen authored
-
Matthias Clasen authored
-
Matthias Clasen authored
-