[gnome-maps/wip/jonasdn/service-3-20: 1/4] mapSource: Move AttributionLogo



commit 8d476b25eb3e0a3596934dfe6645cf4dacf67e30
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Tue Aug 16 20:47:33 2016 +0200

    mapSource: Move AttributionLogo

 src/mapSource.js |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/mapSource.js b/src/mapSource.js
index 3a3ac50..43a5ba8 100644
--- a/src/mapSource.js
+++ b/src/mapSource.js
@@ -41,6 +41,16 @@ const _MAX_ZOOM = 19;
 const _FILE_CACHE_SIZE_LIMIT = (10 * 1024 * 1024); /* 10Mb */
 const _MEMORY_CACHE_SIZE_LIMIT = 100; /* number of tiles */
 
+const AttributionLogo = new Lang.Class({
+    Name: 'AttributionLogo',
+    Extends: Gtk.Image,
+    Template: 'resource:///org/gnome/Maps/ui/attribution-logo.ui',
+
+    _init: function() {
+        this.parent();
+    }
+});
+
 function _createTileSource(uri, name) {
     return new Champlain.NetworkTileSource(
         { id: name,
@@ -56,16 +66,6 @@ function _createTileSource(uri, name) {
         });
 }
 
-const AttributionLogo = new Lang.Class({
-    Name: 'AttributionLogo',
-    Extends: Gtk.Image,
-    Template: 'resource:///org/gnome/Maps/ui/attribution-logo.ui',
-
-    _init: function() {
-        this.parent();
-    }
-});
-
 function _createCachedSource(uri, name) {
     let tileSource = _createTileSource(uri, name);
 


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