1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-28 10:25:47 +01:00

rename autocommand parameters fullscreen and colors to state and name

This commit is contained in:
Doug Kearns
2008-11-06 14:45:58 +00:00
parent 8c9f90c985
commit 185be51cc3
3 changed files with 6 additions and 6 deletions

View File

@@ -479,7 +479,7 @@ function Events() //{{{
{
fullscreen = window.fullScreen;
liberator.triggerObserver("fullscreen", fullscreen);
autocommands.trigger("Fullscreen", {url: "", fullscreen: fullscreen});
autocommands.trigger("Fullscreen", { state: fullscreen });
}
}

View File

@@ -381,7 +381,7 @@ liberator.registerObserver("load_commands", function ()
let scheme = args.arguments[0];
if (io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"]))
autocommands.trigger("ColorScheme", { colors: scheme }); // XXX: Best name?
autocommands.trigger("ColorScheme", { name: scheme });
else
liberator.echoerr("E185: Cannot find color scheme " + scheme);
},

View File

@@ -46,10 +46,10 @@ The following keywords are available where relevant:
*<tags>* The tags applied to <url>. Only for *BookmarkAdd*.
*<keyword>* The keywords applied to the bookmark. Only for *BookmarkAdd*.
*<icon>* The icon associated with <url>. Only for *BookmarkAdd*.
*<size>* The size of a downloaded file.
*<file>* The target destination of a download.
*<fullscreen>* The new fullscreen state.
*<colors>* The color scheme name.
*<size>* The size of a downloaded file. Only for *DownloadPost*.
*<file>* The target destination of a download. Only for *DownloadPost*.
*<state>* The new fullscreen state. Only for *Fullscreen*.
*<name>* The color scheme name. Only for *ColorScheme*.
--------------------------------------------------------------
________________________________________________________________________________