summaryrefslogtreecommitdiff
path: root/wikipedia
diff options
context:
space:
mode:
authorMatt Watson <mattdangerw@gmail.com>2014-04-22 19:26:09 -0700
committerMatt Watson <mattdangerw@gmail.com>2014-04-22 19:26:09 -0700
commit01151c964bc97317dd431995a3bbcbebc013946e (patch)
treebed34917ec9161ad41477b97ee0d77f92ef2f895 /wikipedia
parent104c504ca529caad5fd7c8bb5f3a4e99176330b2 (diff)
Fix broken imports in sdk
With new gjs 1.40 comes stricter imports. Need to make sure every file imports every module it uses. Also alphabetized the imports [endlessm/eos-sdk#940]
Diffstat (limited to 'wikipedia')
-rw-r--r--wikipedia/PrebuiltCategoryPage.js1
-rw-r--r--wikipedia/presenters/domain_wiki_presenter.js3
-rw-r--r--wikipedia/widgets/category_back_button.js1
-rw-r--r--wikipedia/widgets/category_button.js2
4 files changed, 6 insertions, 1 deletions
diff --git a/wikipedia/PrebuiltCategoryPage.js b/wikipedia/PrebuiltCategoryPage.js
index a41ff4a..bc5fe28 100644
--- a/wikipedia/PrebuiltCategoryPage.js
+++ b/wikipedia/PrebuiltCategoryPage.js
@@ -4,6 +4,7 @@ const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
const CategoryBackButton = imports.wikipedia.widgets.category_back_button;
+const EndlessWikipedia = imports.wikipedia.EndlessWikipedia;
const FixedSizeTextView = imports.wikipedia.widgets.FixedSizeTextView;
GObject.ParamFlags.READWRITE = GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE;
diff --git a/wikipedia/presenters/domain_wiki_presenter.js b/wikipedia/presenters/domain_wiki_presenter.js
index 736158d..66701d2 100644
--- a/wikipedia/presenters/domain_wiki_presenter.js
+++ b/wikipedia/presenters/domain_wiki_presenter.js
@@ -1,6 +1,7 @@
const Endless = imports.gi.Endless;
-const Lang = imports.lang;
+const Gio = imports.gi.Gio;
const GObject = imports.gi.GObject;
+const Lang = imports.lang;
const System = imports.system;
//Local Libraries
diff --git a/wikipedia/widgets/category_back_button.js b/wikipedia/widgets/category_back_button.js
index 312d7af..e959fa8 100644
--- a/wikipedia/widgets/category_back_button.js
+++ b/wikipedia/widgets/category_back_button.js
@@ -1,6 +1,7 @@
// Copyright 2014 Endless Mobile, Inc.
const Gettext = imports.gettext;
+const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
diff --git a/wikipedia/widgets/category_button.js b/wikipedia/widgets/category_button.js
index cafa7a6..c116018 100644
--- a/wikipedia/widgets/category_button.js
+++ b/wikipedia/widgets/category_button.js
@@ -1,10 +1,12 @@
const Gdk = imports.gi.Gdk;
const GdkPixbuf = imports.gi.GdkPixbuf;
+const Gio = imports.gi.Gio;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
const CompositeButton = imports.wikipedia.widgets.composite_button;
+const EndlessWikipedia = imports.wikipedia.EndlessWikipedia;
const Utils = imports.wikipedia.utils;
const CATEGORY_LABEL_LEFT_MARGIN_PIXELS = 5; // in addition to the 20px below