summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturezoom.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop gtkintl.hMatthias Clasen2022-09-241-1/+1
| | | | | Include gtkprivate.h for I_() and glib-i18n.h for gettext macros.
* gtkgesturerotate: Filter touchpad holds eventsCarlos Garnacho2022-08-051-2/+3
| | | | | Since the pinch touchpad gestures already have begin/update/end phases, this gesture has no actual use for these events.
* gtkgesturezoom: Don't filter hold eventsJosé Expósito2022-01-261-2/+3
| | | | Part-of: <!3454>
* gesturezoom: Convert docsMatthias Clasen2021-03-111-19/+19
|
* Replace "gdouble" with "double"Benjamin Otte2020-07-251-7/+7
|
* gtkgesturezoom: Do not check touchpad phase on generic eventsCarlos Garnacho2020-06-101-5/+5
| | | | | | | | | | | | This gesture handles both individual touch events and touchpad gesture events, and was checking the touchpad phase in generic code paths. This is dubious since event methods error out on the wrong GdkEventTypes. Check the touchpad gesture phase within the branch handling touchpad events, and make it clear which is the gesture phase of all that we are ignoring. Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2825
* Restructure the GdkEvent type hierarchyEmmanuele Bassi2020-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | GdkEvent has been a "I-can't-believe-this-is-not-OOP" type for ages, using a union of sub-types. This has always been problematic when it comes to implementing accessor functions: either you get generic API that takes a GdkEvent and uses a massive switch() to determine which event types have the data you're looking for; or you create namespaced accessors, but break language bindings horribly, as boxed types cannot have derived types. The recent conversion of GskRenderNode (which had similar issues) to GTypeInstance, and the fact that GdkEvent is now a completely opaque type, provide us with the chance of moving GdkEvent to GTypeInstance, and have sub-types for GdkEvent. The change from boxed type to GTypeInstance is pretty small, all things considered, but ends up cascading to a larger commit, as we still have backends and code in GTK trying to access GdkEvent structures directly. Additionally, the naming of the public getter functions requires renaming all the data structures to conform to the namespace/type-name pattern.
* events: reorganize gettersMatthias Clasen2020-02-211-3/+3
| | | | | | | | | | 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.
* Strip const from GdkEventMatthias Clasen2020-02-211-2/+2
| | | | | Events are refcounted structs, and we generally don't pass these as const.
* zoomgesture: Port to new API modelBenjamin Otte2018-04-261-5/+1
|
* The big versioning cleanupMatthias Clasen2018-02-061-6/+0
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* GtkGestureZoom: Don't leak the list of sequencesDebarshi Ray2017-10-191-6/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=789149
* gesture zoom: Use GdkEvent APIMatthias Clasen2017-09-191-5/+14
|
* gesture: Update to using GdkEvent APICarlos Garnacho2017-09-191-2/+2
| | | | To some extent, pad and touchpad gesture events need extra API.
* Intern all signal names beforehandMatthias Clasen2015-09-121-1/+2
| | | | This avoids pointless allocations
* gtkgesturezoom: Handle touchpad pinch eventsCarlos Garnacho2015-08-121-8/+45
| | | | | We let these through in GtkEventController::filter, and handle these especially on GtkGesture::update.
* Don't assert in gtk_event_controller_constructedMatthias Clasen2014-05-271-0/+2
| | | | | | This prevents some of our generic object implementation tests from working with gesture objects. Instead, add g_return_if_fail checks in all the gesture constructors.
* Silence gtk-doc warningsMatthias Clasen2014-05-271-4/+3
|
* gesturezoom: Just return a double in get_scale_delta()Carlos Garnacho2014-05-271-11/+7
| | | | Checking whether the gesture is active is a responsibility of the caller.
* Docs: Cosmetic fixesMatthias Clasen2014-05-231-1/+1
|
* Prevent subclassing of gesturesMatthias Clasen2014-05-231-1/+2
| | | | | For now, at least. We do this by hiding the instance and class structures in private headers.
* zoom: doc fixesCarlos Garnacho2014-05-231-1/+1
|
* zoom: Add missing documentationCarlos Garnacho2014-05-231-0/+18
|
* Add GtkGestureZoomCarlos Garnacho2014-05-231-0/+201
This gesture interprets and reports relative scale differences when fed with events from two different GdkEventSequences.