diff options
author | Matt Watson <mattdangerw@gmail.com> | 2013-09-18 17:38:14 -0700 |
---|---|---|
committer | Matt Watson <mattdangerw@gmail.com> | 2013-09-18 17:55:50 -0700 |
commit | 41893bef5a86e1cad021ad4053b69765da3ae495 (patch) | |
tree | 0dd76275cf8829bb0c09a20a9e528e9cd5bf62bb /overrides/Endless.js | |
parent | bee3cf2a182ac6f6fadd0dd5d24768e5a5837521 (diff) |
Added asset button to the endless override
The syntax can will hopefully stay the same for apps when this
widget gets rewritten in C. Added support for labels like the
standard button. Moved the overrides rules to a separate .inc
makefile so we can add more standard js libs if we want
[endlessm/eos-sdk#290]
Diffstat (limited to 'overrides/Endless.js')
-rw-r--r-- | overrides/Endless.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/overrides/Endless.js b/overrides/Endless.js index 9645f85..7f1d0a5 100644 --- a/overrides/Endless.js +++ b/overrides/Endless.js @@ -14,10 +14,15 @@ function getCurrentFileDir() { return Gio.File.new_for_path(path).get_parent().get_path(); } +imports.searchPath.unshift(getCurrentFileDir()); + +const AssetButton = imports.endless_private.asset_button; + function _init() { // this is imports.gi.Endless Endless = this; Endless.getCurrentFileDir = getCurrentFileDir; + Endless.AssetButton = AssetButton.AssetButton; // Override Endless.PageManager.add() so that you can set child properties // at the same time |