This repository was archived by the owner on Jun 8, 2021. It is now read-only.
This repository was archived by the owner on Jun 8, 2021. It is now read-only.
Is there any way to disconnect event handlers? #363
Closed
Description
From what I can see, the only things the API exposes to do with event handlers currently are the connect_
methods on gtk::WidgetExt
- is there a way to disconnect event handlers?
The reason I ask is the following: when calling destroy()
on a widget, GTK fires the focus-out event for the widget - which interrupts my program's flow and ends up borrowing a Rc<RefCell<T>>
that is currently in use, because it's part of the code calling destroy()
. Is there any remedy for this situation, for example blocking signal handlers for a brief period?
Metadata
Metadata
Assignees
Labels
No labels