Replace tabs with spaces in app macro

This commit is contained in:
Daniel García Moreno 2019-03-11 17:46:46 +01:00 committed by Alexandre Franke
parent bdb4d5c7af
commit d62bcc2cbd

View file

@ -26,16 +26,16 @@ static mut OP: Option<SyncWeak<Mutex<AppOp>>> = None;
#[macro_export]
macro_rules! APPOP {
($fn: ident, ($($x:ident),*) ) => {{
let ctx = glib::MainContext::default();
ctx.invoke(move || {
$( let $x = $x.clone(); )*
if let Some(op) = App::get_op() {
op.lock().unwrap().$fn($($x),*);
}
});
let ctx = glib::MainContext::default();
ctx.invoke(move || {
$( let $x = $x.clone(); )*
if let Some(op) = App::get_op() {
op.lock().unwrap().$fn($($x),*);
}
});
}};
($fn: ident) => {{
APPOP!($fn, ( ) );
APPOP!($fn, ( ) );
}}
}