CHANGED
Callback
s can now have empty values (constructed byDefault::default()
), obviating the need to wrap them inOption<>
. The coercion forOption<Callback<>>
for functions has been replaced with one for justCallback<>
as a consequence, which means you'll have to update your subcomponents: just replace anyOption<Callback<A>>
withCallback<A>
in your properties, and remove theSome
check onself.on_my_callback.send()
—you can just callsend()
on an empty callback directly now, and it will quietly do nothing. If you'd rather not needlessly construct the value forsend()
when a callback is empty, you can useCallback::is_empty()
as a predicate instead of theSome
check.
ADDED
- A macro
gtk_if!
has been added, to automate the common case of conditionally inserting a child widget. - Subcomponents will now accept signal handler syntax, rendering
on signal=|| {}
intoon_signal=|| {}
, for consistency. - Properties which want an
Option<&A>
will now accept anOption<A>
. (#33)