[gnome-maps] main: Move pkg.init* calls to the top of the file



commit ee0134f72433946909374f4baa4fbe613c165ac0
Author: Damián Nohales <damiannohales gmail com>
Date:   Mon Jan 5 11:11:45 2015 -0300

    main: Move pkg.init* calls to the top of the file
    
    This is done in that way in gnome-weather and gtk-js-app so let's use
    the same style.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742380

 src/main.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/main.js b/src/main.js
index 305faf2..f6af59c 100644
--- a/src/main.js
+++ b/src/main.js
@@ -21,6 +21,8 @@
  *         Zeeshan Ali (Khattak) <zeeshanak gnome org>
  */
 
+pkg.initGettext();
+pkg.initFormat();
 pkg.require({ 'cairo': '1.0',
               'Champlain': '0.12',
               'Clutter': '1.0',
@@ -43,9 +45,6 @@ pkg.require({ 'cairo': '1.0',
 const Application = imports.application;
 
 function main(args) {
-    pkg.initGettext();
-    pkg.initFormat();
-
     let application = new Application.Application();
     return application.run(args);
 }


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