From 56015e3744c088759e5ea6c55cd99646b9b2613d Mon Sep 17 00:00:00 2001 From: foudfou Date: Wed, 6 Jul 2011 01:32:36 +0200 Subject: [PATCH] refactor: rename "mozt" to "moztray" --- src/Makefile | 4 ++-- src/chrome.manifest | 10 +++++----- src/chrome/content/options.js | 6 +++--- src/chrome/content/options.xul | 20 ++++++++++---------- src/chrome/content/overlay.js | 26 +++++++++++++------------- src/chrome/content/overlay.xul | 8 ++++---- src/chrome/locale/en-US/overlay.dtd | 2 +- src/chrome/skin/overlay.css | 12 ++++++------ src/defaults/preferences/prefs.js | 12 ++++++------ src/install.rdf | 8 ++++---- src/modules/commons.js | 20 ++++++++++---------- 11 files changed, 64 insertions(+), 64 deletions(-) diff --git a/src/Makefile b/src/Makefile index 3298b93..1ef4006 100755 --- a/src/Makefile +++ b/src/Makefile @@ -22,7 +22,7 @@ help: @echo "Have fun !" # The UUID of the extension. -extension_uuid := moztray@foudil.fr +extension_uuid := moztrayray@foudil.fr # The name of the profile dir where the extension can be installed. profile_dir := mozilla-dev @@ -151,7 +151,7 @@ $(build_dir)/$(chrome_source_root)/%.js: $(chrome_source_root)/%.js cp -f $< $@; \ else \ echo "Stripping comments from JS file $<"; \ - sed '/mozt\.Debug\.dump/d' $< > $@; \ + sed '/moztray\.Debug\.dump/d' $< > $@; \ fi $(build_dir)/$(modules_dir)/commons.js: $(modules_dir)/commons.js diff --git a/src/chrome.manifest b/src/chrome.manifest index 54fbf7f..873846d 100644 --- a/src/chrome.manifest +++ b/src/chrome.manifest @@ -1,6 +1,6 @@ -content mozt chrome/content/ -skin mozt classic/1.0 chrome/skin/ -locale mozt en-US chrome/locale/en-US/ -resource mozt modules/ +content moztray chrome/content/ +skin moztray classic/1.0 chrome/skin/ +locale moztray en-US chrome/locale/en-US/ +resource moztray modules/ -overlay chrome://browser/content/browser.xul chrome://mozt/content/overlay.xul +overlay chrome://browser/content/browser.xul chrome://moztray/content/overlay.xul diff --git a/src/chrome/content/options.js b/src/chrome/content/options.js index a7ebca0..d215a8a 100644 --- a/src/chrome/content/options.js +++ b/src/chrome/content/options.js @@ -1,14 +1,14 @@ /* -*- Mode: js2; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -Components.utils.import("resource://mozt/commons.js"); +Components.utils.import("resource://moztray/commons.js"); const Cc = Components.classes; const Ci = Components.interfaces; -mozt.UIOptions = { +moztray.UIOptions = { onLoad: function() { - this.toggleDisable_All(mozt.Utils.prefService.getBoolPref('enabled')); + this.toggleDisable_All(moztray.Utils.prefService.getBoolPref('enabled')); this.toggleCheck_BypassIssuerUnknown( document.getElementById('ui_bypass_self_signed').checked); }, diff --git a/src/chrome/content/options.xul b/src/chrome/content/options.xul index a43d99e..6f0d586 100644 --- a/src/chrome/content/options.xul +++ b/src/chrome/content/options.xul @@ -1,10 +1,10 @@ - - + + onload= "moztray.UIOptions.onLoad()">