b1f6e609c61b997a31794e9b45e81738fc81edc7
child_data->widget has been created
`add_event_to_block()` assumes that the child widget has never been parented, so it will always set the parent widget when the widget is already parented, which triggers a critical error in GTK. This patch addresses this situation by only parenting when the widget has just been created. Additionally, it asserts that the parent widget is `self` in the end, so that it crashes if this is incorrect. Fixes: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/work_items/1643> Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/863>
Installation
Links
- Homepage: apps.gnome.org/Calendar
- Report an issue: gitlab.gnome.org/GNOME/gnome-calendar/issues
- Donate: donate.gnome.org
- Translate: l10n.gnome.org/module/gnome-calendar
- Contact: matrix.to/#/#gnome-calendar:gnome.org
Contributing
For information on how to contribute, please check CONTRIBUTING.md and HACKING.md.
Languages
C
97.6%
Meson
1.2%
CSS
0.7%
Python
0.3%
Shell
0.2%
