Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Toolbar button library integrated.

uggrock2181fd7f56a2
diff --git a/build.number b/build.number
index 85a380253..945bd3efd 100644
--- a/build.number
+++ b/build.number
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
-#Thu Dec 27 22:41:21 CET 2012
-build.number=1190
+#Mon Jan 07 17:37:28 CET 2013
+build.number=1192
diff --git a/lib/main.js b/lib/main.js
index 423d3178d..a9302fcda 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -47,22 +47,22 @@ exports.main = function(options, callbacks) {
// A basic click-able image widget.
widgets.Widget({
- id: "TagSpaces",
- label: "TagSpaces",
- contentURL: data.url("icons/icon16.png"),
- onClick: function() {
- // Opens the main ui in a new pinned tab
- require("tabs").open({
- url: data.url("index.html"),
- isPinned: true,
- });
- },
- onMouseover: function() {
- this.contentURL = data.url("icons/icon16color.png");
- },
- onMouseout: function() {
- this.contentURL = data.url("icons/icon16.png");
- }
+ id: "TagSpaces",
+ label: "TagSpaces",
+ contentURL: data.url("icons/icon16.png"),
+ onClick: function() {
+ // Opens the main ui in a new pinned tab
+ require("tabs").open({
+ url: data.url("index.html"),
+ isPinned: true,
+ });
+ },
+ onMouseover: function() {
+ this.contentURL = data.url("icons/icon16color.png");
+ },
+ onMouseout: function() {
+ this.contentURL = data.url("icons/icon16.png");
+ }
});
// Adding menuitem to the tools menu
@@ -79,6 +79,28 @@ exports.main = function(options, callbacks) {
},
insertbefore: "menu_pageInfo"
});
+
+ // Adding toolbar button
+ var toolbarButton = require("toolbarbutton").ToolbarButton({
+ id: "TagspacesToolbarButton",
+ label: "TagSpaces",
+ image: data.url("icons/icon16.png"),
+ toolbarID: "nav-bar",
+ onCommand: function() {
+ // Opens the main ui in a new pinned tab
+ require("tabs").open({
+ url: data.url("index.html"),
+ isPinned: true,
+ });
+ },
+ onMouseover: function() {
+ this.contentURL = data.url("icons/icon16color.png");
+ },
+ onMouseout: function() {
+ this.contentURL = data.url("icons/icon16.png");
+ },
+ forceMove: true
+ });
};
exports.onUnload = function(reason) {
diff --git a/mozilla.package.tmpl.json b/mozilla.package.tmpl.json
index 6fef685cb..bd4c2e240 100644
--- a/mozilla.package.tmpl.json
+++ b/mozilla.package.tmpl.json
@@ -6,7 +6,7 @@
"fullName": "@APPNAME@",
"id": "jid1-FBaMKxTifTSahQ",
"description": "@APPNAME@ is a firefox addon, which allows you to browse your local file system and add tags to your files.",
- "dependencies": ["menuitems", "addon-kit", "api-utils"],
+ "dependencies": ["toolbarbutton", "menuitems", "addon-kit", "api-utils"],
"icon": "data/icons/icon48.png",
"icon64": "data/icons/icon64.png",
"homepage": "http://tagspaces.org",
diff --git a/package.json b/package.json
index 27645d005..0f4c3686e 100644
--- a/package.json
+++ b/package.json
@@ -2,11 +2,11 @@
"name": "tagspaces",
"license": "AGPL 3.0",
"author": "Ugg Rock",
- "version": "1.2.1189",
+ "version": "1.2.1191",
"fullName": "TagSpaces",
"id": "jid1-FBaMKxTifTSahQ",
"description": "TagSpaces is a firefox addon, which allows you to browse your local file system and add tags to your files.",
- "dependencies": ["menuitems", "addon-kit", "api-utils"],
+ "dependencies": ["toolbarbutton", "menuitems", "addon-kit", "api-utils"],
"icon": "data/icons/icon48.png",
"icon64": "data/icons/icon64.png",
"homepage": "http://tagspaces.org",
diff --git a/update.rdf b/update.rdf
index 7804d5c11..f37f1b96d 100644
--- a/update.rdf
+++ b/update.rdf
@@ -7,13 +7,13 @@
<r:Seq>
<r:li>
<r:Description>
- <version>1.2.1189</version>
+ <version>1.2.1191</version>
<targetApplication>
<r:Description>
<id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id>
<minVersion>16.0</minVersion>
<maxVersion>*</maxVersion>
- <updateLink>http://tagspaces.com/releases/1.2/tagspaces.1.2.1189.xpi</updateLink>
+ <updateLink>http://tagspaces.com/releases/1.2/tagspaces.1.2.1191.xpi</updateLink>
<updateInfoURL>http://tagspaces.com/releases/1.2/updateInfo.xml</updateInfoURL>
</r:Description>
</targetApplication>