This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
No destroy function on Widgets #3
Comments
So, in GTK4 we should use unparent() |
No, I'm still confused. I don't really understand how to properly destroy widgets. const wdgt: Gtk.Widget = list.children.find((n) => n.attribute.id === id);
list?.remove(wdgt);
wdgt?.run_dispose(); const wdgt: Gtk.Widget = list.children.find((n) => n.attribute.id === id);
wdgt?.unparent(); It works somehow, but last appeared notification stays displayed. recording.mp4In addition, the box containing pop-up notifications does not shrink after children are destroyed |
Finally managed to figure out why this is happening. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to create a popup notification list, I can't handle widget destroy because there is no such function on the widget.
The text was updated successfully, but these errors were encountered: