This repository was archived by the owner on Jun 8, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 83
Is there any way to disconnect event handlers? #363
Comments
@GuillaumeGomez Ah, I see. Great! I've subscribed to that issue, so I'll close this one. |
There is an unsafe way ( Ideally Consider also |
@gkoz I implemented a workaround with |
The |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
From what I can see, the only things the API exposes to do with event handlers currently are the
connect_
methods ongtk::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 aRc<RefCell<T>>
that is currently in use, because it's part of the code callingdestroy()
. Is there any remedy for this situation, for example blocking signal handlers for a brief period?The text was updated successfully, but these errors were encountered: