You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case:
I'm emitting a singal from a child widget to call another function from the parent and want it to return a bool if it succeeded or not
(exact use case: A widget has a button and a clicked signal. The parent connects to the signal that provides the hash function to copy in string (e.g. "MD5"), the parent then copies it to clipboard and should return a bool to the widget if it succeeded or not so the button displays the correct feedback icon (:heavy_check_mark: or :x:))
The text was updated successfully, but these errors were encountered:
Then we also need to register a GObject::SignalAcumulator callback.
I never used (or remember to had used) signals with return values, so I would need to do some experiments in libtest to first see it working in C, to later change the macro to let it work in Crystal.
Could the signal macro support non-void signals?
Use case:
I'm emitting a singal from a child widget to call another function from the parent and want it to return a bool if it succeeded or not
(exact use case: A widget has a button and a clicked signal. The parent connects to the signal that provides the hash function to copy in string (e.g. "MD5"), the parent then copies it to clipboard and should return a bool to the widget if it succeeded or not so the button displays the correct feedback icon (:heavy_check_mark: or :x:))
The text was updated successfully, but these errors were encountered: