gtk2/testsuite/gtk
Emmanuele Bassi f28aa1ba02 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.
2020-04-16 19:54:02 +01:00
..
file-chooser-test-dir
focus-chain scalebutton: Don't derive from GtkButton 2020-04-09 20:43:45 -04:00
icons
icons2
ui Remove new attributes from tests 2019-07-28 11:00:29 -04:00
accel.c gtk: Stop using modifier intents 2020-04-06 16:32:03 -04:00
accessible.c testsuite: Fix the accessible test 2020-03-20 10:03:04 -04:00
action.c testsuite: Make actions test order-independent 2020-04-11 10:07:31 -04:00
adjustment.c adjustment: Remove deprecated API 2016-10-18 00:29:19 +02:00
autotestkeywords.cc testsuite: Update C++ keywords test to GTK 3.0.0 2018-03-18 19:20:46 +01:00
bitmask.c testsuite: Stop using g_test_bug() 2019-05-12 17:28:18 +02:00
builder.c testsuite: Stop setting :has-focus 2020-04-09 17:50:29 -04:00
builderparser.c
cellarea.c treeview column: Make final 2019-05-28 23:22:57 -04:00
check-icon-names.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
constraint-solver.c Use explicit values for constraint strength 2019-07-01 12:39:24 +01:00
cssprovider.c cssprovider test: Remove style property test case 2017-07-19 21:27:14 -04:00
defaultvalue.c Turn GtkShortcutAction into a GObject 2020-03-25 23:14:45 -04:00
displayclose.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
entry.c entry, spin button: Drop redundant API 2019-02-28 16:34:00 -05:00
filterlistmodel.c Fix leaks in tests 2019-12-04 18:24:56 -05:00
filtermodel.c testsuite: Use g_assert() in tests 2020-03-02 03:18:55 +01:00
flattenlistmodel.c testsuite/gtk/flattenlistmodel.c: fix build 2020-03-22 10:53:59 +01:00
floating.c
gestures.c Restructure the GdkEvent type hierarchy 2020-04-16 19:54:02 +01:00
grid-layout.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
grid.c tests: Update the GtkGrid suite 2019-04-04 22:43:07 +01:00
gtk.test.in Add a forgotten file 2017-10-18 18:52:06 +02:00
gtktreemodelrefcount.c testsuite: Strip newlines from g_warning and g_error 2016-02-28 12:23:12 -05:00
gtktreemodelrefcount.h
icontheme.c icontheme: Update the api 2020-02-18 20:32:17 -05:00
listbox.c
liststore.c
main.c Drop gtk_get_main_thread 2020-02-09 23:13:13 -05:00
maplistmodel.c Fix leaks in tests 2019-12-04 18:24:56 -05:00
meson.build Disable focus-chain test that depends on the environment 2020-04-09 17:50:29 -04:00
modelrefcount.c
no-gtk-init.c testsuite: Stop using g_test_bug() 2019-05-12 17:28:18 +02:00
notify.c testsuite: Fix notify test no not fail on the 30th 2020-03-29 09:04:19 -04:00
object.c testsuite: Remove outdated exclusions 2020-02-24 23:08:34 -05:00
objects-finalize.c Turn GtkShortcutAction into a GObject 2020-03-25 23:14:45 -04:00
papersize.c
popover.c popover: Drop ::relative-to 2020-02-24 20:46:41 -05:00
propertylookuplistmodel.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
rbtree-crash.c testsuite: Don't g_print from tests 2020-03-20 10:03:04 -04:00
rbtree.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
recentmanager.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
regression-tests.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00
revealer-size.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
scrolledwindow.c testsuite/scrolledwindow: Try non-overlay/non-auto 2017-05-10 22:29:01 +01:00
searchbar.c Add basic searchbar set_key_capture_widget tests 2018-05-19 10:18:50 +02:00
shortcuts.c Restructure the GdkEvent type hierarchy 2020-04-16 19:54:02 +01:00
singleselection.c testsuite: Stop using g_test_bug() 2019-05-12 17:28:18 +02:00
slicelistmodel.c slicelistmodel: Fix two wrong computations 2020-02-14 03:15:22 +01:00
sortlistmodel.c Fix leaks in tests 2019-12-04 18:24:56 -05:00
sortmodel.c testsuite: Stop using g_test_bug() 2019-05-12 17:28:18 +02:00
spinbutton.c
templates.c testsuite: Stop using type-hint 2020-03-11 19:35:56 -04:00
test-focus-chain.c testsuite: Add some checks for focus states 2020-04-16 12:31:17 -04:00
textbuffer.c textview: Use paintables instead of textures, and fix the support 2020-02-06 17:47:56 +01:00
textiter.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
theme-validate.c testsuite: Add theme-validate test 2019-04-18 02:28:42 +02:00
treelistmodel.c Fix treelistmodel tests 2019-12-04 18:30:37 -05:00
treemodel.c testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
treemodel.h testsuite/gtk: Add common_cflags to build 2020-03-07 16:28:04 +01:00
treepath.c
treestore.c testsuite: Stop using g_test_bug() 2019-05-12 17:28:18 +02:00
treeview.c testsuite: Don't use return_if_fail() 2020-02-22 07:35:23 +01:00
typename.c builder: Improve type name mangling 2019-12-13 14:21:44 -05:00
widgetorder.c testsuite: Add test case for previous commit 2017-09-29 12:16:06 +02:00
window.c window: Remove type argument from gtk_window_new() 2020-02-14 21:18:49 +01:00