summaryrefslogtreecommitdiffstats
path: root/content/overlays
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--content/overlays/messenger.js22
-rw-r--r--content/overlays/messenger.xhtml20
2 files changed, 42 insertions, 0 deletions
diff --git a/content/overlays/messenger.js b/content/overlays/messenger.js
new file mode 100644
index 0000000..b6d0a97
--- /dev/null
+++ b/content/overlays/messenger.js
@@ -0,0 +1,22 @@
+/*
+ * This file is part of TbSync.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+ "use strict";
+
+var { TbSync } = ChromeUtils.import("chrome://tbsync/content/tbsync.jsm");
+
+var tbSyncMessenger = {
+
+ onInject: function (window) {
+ Services.obs.notifyObservers(null, "tbsync.observer.manager.updateSyncstate", null);
+ },
+
+ onRemove: function (window) {
+ },
+
+};
diff --git a/content/overlays/messenger.xhtml b/content/overlays/messenger.xhtml
new file mode 100644
index 0000000..37d07ca
--- /dev/null
+++ b/content/overlays/messenger.xhtml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+
+<overlay
+ id="TbSyncMessengerOverlay"
+ omscope="tbSyncMessenger"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+
+ <script type="application/javascript" src="chrome://tbsync/content/overlays/messenger.js" />
+ <script type="text/javascript" src="chrome://tbsync/content/scripts/locales.js" />
+
+ <menupopup id="tbsync.statusmenu">
+ <menuitem label="__TBSYNCMSG_popup.opensettings__" oncommand="TbSync.manager.openManagerWindow(event);" />
+ </menupopup>
+
+ <label id="tbsync.status" class="statusbarpanel" value="TbSync" onclick="TbSync.manager.openManagerWindow(event);" appendto="status-bar"/>
+
+ <!--menuitem id="tbsync.taskPopupEntry" label="__TBSYNCMSG_menu.settingslabel__" appendto="taskPopup" onclick="TbSync.manager.openManagerWindow(event);" / -->
+ <menuitem id="tbsync.accountmgrEntry" label="__TBSYNCMSG_menu.settingslabel__" insertbefore="menu_accountmgr" oncommand="TbSync.manager.openManagerWindow(event);" />
+
+</overlay>