merge stable version #2
|
@ -54,10 +54,10 @@ where
|
|||
&self.actions_group.0
|
||||
}
|
||||
|
||||
pub fn append_items<Iterable, F>(&self, items: Iterable)
|
||||
pub fn append_items<F, I>(&self, items: I)
|
||||
where
|
||||
Iterable: IntoIterator<Item = (F, &'static str, &'static str)>,
|
||||
F: Fn(&SimpleAction, Option<&Variant>) + 'static,
|
||||
I: IntoIterator<Item = &'static (F, &'static str, &'static str)>,
|
||||
{
|
||||
for (callback, action_name, action_label) in items {
|
||||
let action = ActionEntry::<SimpleActionGroup>::builder(action_name)
|
||||
|
|
Loading…
Reference in New Issue