[geary: 21/66] Code convention style tweaks



commit 29d947cd6d1f8df235d1f054d0dd8d976e5d5621
Author: Chris Heywood <15127-creywood users noreply gitlab gnome org>
Date:   Thu Jan 9 12:40:56 2020 +0100

    Code convention style tweaks

 src/client/application/application-controller.vala | 34 ++++++++++++----------
 1 file changed, 19 insertions(+), 15 deletions(-)
---
diff --git a/src/client/application/application-controller.vala 
b/src/client/application/application-controller.vala
index 9c1a3df3f..04e04909a 100644
--- a/src/client/application/application-controller.vala
+++ b/src/client/application/application-controller.vala
@@ -1403,29 +1403,20 @@ internal class Application.Controller : Geary.BaseObject {
         }
     }
 
-    // Track a window receiving focus, for idle background work
+    /**
+     * Track a window receiving focus, for idle background work.
+     */
     public void window_focus_in() {
         this.all_windows_backgrounded_timeout.reset();
     }
 
-    // Track a window going unfocused, for idle background work
+    /**
+     * Track a window going unfocused, for idle background work.
+     */
     public void window_focus_out() {
         this.all_windows_backgrounded_timeout.start();
     }
 
-    private void on_unfocused_idle() {
-        // Schedule later, catching cases where work should occur later while still in background
-        this.all_windows_backgrounded_timeout.reset();
-        this.all_windows_backgrounded = true;
-        window_focus_out();
-
-        debug("Checking for backgrounded idle work");
-        foreach (AccountContext context in this.accounts.values) {
-            Geary.Account account = context.account;
-            account.app_backgrounded_cleanup.begin(context.cancellable);
-        }
-    }
-
     /** Displays a composer on the last active main window. */
     internal void show_composer(Composer.Widget composer,
                                 Gee.Collection<Geary.EmailIdentifier>? refers_to,
@@ -1792,6 +1783,19 @@ internal class Application.Controller : Geary.BaseObject {
         }
     }
 
+    private void on_unfocused_idle() {
+        // Schedule later, catching cases where work should occur later while still in background
+        this.all_windows_backgrounded_timeout.reset();
+        this.all_windows_backgrounded = true;
+        window_focus_out();
+
+        debug("Checking for backgrounded idle work");
+        foreach (AccountContext context in this.accounts.values) {
+            Geary.Account account = context.account;
+            account.app_backgrounded_cleanup.begin(context.cancellable);
+        }
+    }
+
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]