[fractal/replace-tab-with-spaces] Replace tabs with spaces in app macro
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/replace-tab-with-spaces] Replace tabs with spaces in app macro
- Date: Mon, 11 Mar 2019 16:47:30 +0000 (UTC)
commit 36cdf5dec6a2c06af8dd04128d62bd727b5aca5f
Author: Daniel GarcĂa Moreno <dani danigm net>
Date: Mon Mar 11 17:46:46 2019 +0100
Replace tabs with spaces in app macro
fractal-gtk/src/app/mod.rs | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/fractal-gtk/src/app/mod.rs b/fractal-gtk/src/app/mod.rs
index d77175ee..34ffaff4 100644
--- a/fractal-gtk/src/app/mod.rs
+++ b/fractal-gtk/src/app/mod.rs
@@ -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, ( ) );
}}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]