Replace usage of GTK private structures
Original Reporter info from Mantis: cobines
-
Reporter name:
Original Reporter info from Mantis: cobines
- Reporter name:
Description:
LCLGTK2 accesses GTK private structures in some places, but those structures may be changed from version to version and they indeed do. The fields are not only added, but also removed and reordered. This is causing Lazarus to access some other data than it was intended with different GTK versions and has caused crashes on two occasions for me when using Lazarus 0.9.28 with libgtk-2.20. Some of these were already fixed in 0.9.29.
There is a related bug report here #16235 (closed), which asks to remove two such usages.
Please either replace access to these structures with appropriate GTK functions calls where possible, or define separate, correct private structures for each GTK version.
Mantis conversion info:
- Mantis ID: 16374
- OS: Debian
- OS Build: Sid
- Build: 25079
- Platform: Linux
- Version: 0.9.29 (SVN)