[fractal/replace-tab-with-spaces: 10/10] Replace tabs with spaces in app macro
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/replace-tab-with-spaces: 10/10] Replace tabs with spaces in app macro
- Date: Fri, 15 Mar 2019 10:51:03 +0000 (UTC)
commit d62bcc2cbd10c818ff268001d4a9b15fc4e06b30
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]