summaryrefslogtreecommitdiff
path: root/gtk/gtkmarshalers.list
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-04-16 17:23:36 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-04-16 19:54:02 +0100
commitf28aa1ba026dad82c4d3a128f99d4e99615a5a52 (patch)
tree4ae2801c19e8b53b6b491961575ea5d03af35d0c /gtk/gtkmarshalers.list
parent96cfb12946f13581a2ecd89da035f14b555a0a47 (diff)
downloadgtk+-f28aa1ba026dad82c4d3a128f99d4e99615a5a52.tar.gz
Restructure the GdkEvent type hierarchy
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.
Diffstat (limited to 'gtk/gtkmarshalers.list')
-rw-r--r--gtk/gtkmarshalers.list1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkmarshalers.list b/gtk/gtkmarshalers.list
index 6e91f452b5..e6c2606c50 100644
--- a/gtk/gtkmarshalers.list
+++ b/gtk/gtkmarshalers.list
@@ -50,6 +50,7 @@ BOOLEAN:VOID
BOOLEAN:BOOLEAN
BOOLEAN:BOOLEAN,BOOLEAN,BOOLEAN
BOOLEAN:STRING
+BOOLEAN:POINTER
ENUM:ENUM
ENUM:VOID
INT:POINTER