Community
Participate
Working Groups
Port SWT's event handling to GtkEventController in preparation for GTK4.
I have had some basic success with a text widget and the "key-pressed" signal. However some widgets like Button aren't playing nicely, even at the native level. I've opened an issue against GTK for this: https://gitlab.gnome.org/GNOME/gtk/issues/1379
New Gerrit change created: https://git.eclipse.org/r/130369
Gerrit change https://git.eclipse.org/r/130369 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=7e252e3b676538e66261bfe18cb6922e90f192bd
New Gerrit change created: https://git.eclipse.org/r/135264
Gerrit change https://git.eclipse.org/r/135264 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=ce2d380a4f6ab3facf81919f1e2546655ef70e7f
New Gerrit change created: https://git.eclipse.org/r/135342
Gerrit change https://git.eclipse.org/r/135342 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=4c6f9b48145b05e0fa1ba1ca2d72508f386576b0
Some things to note for GTK4 events: -Enter/leave is not handled properly on the native side, and will be subject to change in the future. For now however this will lead to broken behaviour. -It will probably be useful to maintain some sort of global controller registry to avoid having redundant controllers for a widget. This can be done later down the road when events are working 100% and can be tested
This isn't in a working state for 3.24, so I'm moving it to be GTK4 only.
I think upstream GTK4 development has made some good progress on event handling. Whoever works on this in the future should confirm the status of comment 8.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/183027
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/183027 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=956c7d6f207ebc12715f8dde298e58af6d33aa22
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/183457
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/183457 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=b70cd16c42914b617e770ad76a8e951fa6ebf325
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/183706 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=4ff9f1c7ce18ead311d01f49f210864266dbae88
Signal handling is an ongoing process, not all signals have been converted to GtkEventController.