Macro gtk_macros::send [−][src]
macro_rules! send { ($sender:expr, $action:expr) => { ... }; }
Send an event through a glib::Sender
-
Before:
Example:
sender.send(Action::DoThing).expect("Failed to send DoThing through the glib channel?");
-
After:
Example:
send!(self.sender, Action::DoThing);