[Pkg-mozext-commits] [firetray] 238/399: complete command-line handling (show/hide windows)
David Prévot
taffit at alioth.debian.org
Tue Oct 29 18:23:50 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch dfsg-clean
in repository firetray.
commit 137e6896ac7c55d3aed1ad4def20243af2d2ce81
Author: foudfou <foudil.newbie+git at gmail.com>
Date: Sun May 13 16:18:52 2012 +0200
complete command-line handling (show/hide windows)
---
src/components/firetray-clhandler.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/components/firetray-clhandler.js b/src/components/firetray-clhandler.js
index 13dd41f..a2164e2 100644
--- a/src/components/firetray-clhandler.js
+++ b/src/components/firetray-clhandler.js
@@ -6,6 +6,7 @@ const Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://firetray/logging.jsm");
+Cu.import("resource://firetray/FiretrayHandler.jsm");
function firetayCommandLineHandler() {}
firetayCommandLineHandler.prototype = {
@@ -24,8 +25,9 @@ firetayCommandLineHandler.prototype = {
/* nsICommandLineHandler */
handle: function clh_handle(cmdLine)
{
- if (cmdLine.handleFlag("firetray", false)) {
- firetray.WARN("*** CALL ***");
+ if (cmdLine.handleFlag("showHide", false)) {
+ firetray.LOG("*** CmdLine call ***");
+ firetray.Handler.showHideAllWindows();
cmdLine.preventDefault = true;
}
},
@@ -34,7 +36,7 @@ firetayCommandLineHandler.prototype = {
// nsICommandLineHandler.idl specifically, flag descriptions should start at
// character 24, and lines should be wrapped at 72 characters with embedded
// newlines, and finally, the string should end with a newline
- helpInfo: " -firetray FOUDIL WAS HERE\n"
+ helpInfo: " -showHide Minimize to or restore from system tray\n"
};
var NSGetFactory = XPCOMUtils.generateNSGetFactory([firetayCommandLineHandler]);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firetray.git
More information about the Pkg-mozext-commits
mailing list