diff options
author | Robert Manea <gotmor@gmail.com> | 2009-10-18 21:00:46 +0200 |
---|---|---|
committer | Robert Manea <gotmor@gmail.com> | 2009-10-18 21:00:46 +0200 |
commit | 32c6afd652de21046e3b31aa4854e123345b60ea (patch) | |
tree | 839ed6825e3fc90ac65776ff81dda7358bc5c74e | |
parent | 1df3cf4d7d823216b80fff40e8cf701599482c0d (diff) |
document menu_* commands
-rw-r--r-- | README | 10 | ||||
-rw-r--r-- | uzbl-core.c | 2 |
2 files changed, 11 insertions, 1 deletions
@@ -164,6 +164,16 @@ The following commands are recognized: - update the contents of the status and title bars * `event <event_name> [event_details]` - send custom event +* menu_add <label> [uzbl command] + - add a new entry "label" that will execute "uzbl command" to the right click menu + - NOTE: you will need to quote 'label' and 'uzbl command' if they contain any spaces +* menu_add_separator <label> + - adds a separator line to the right click menu + - no qouting needed +* menu_remove <label> + - removes the entry "label" from the right click menu + - no quoting needed + ### VARIABLES AND CONSTANTS Uzbl has a lot of internal variables and constants. You can get the values (using the `print` command, see above), and for variables you can also change the value at diff --git a/uzbl-core.c b/uzbl-core.c index ee4b1c3..8f59847 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -625,7 +625,7 @@ struct {const char *key; CommandInfo value;} cmdlist[] = { "update_gui", {update_gui, TRUE} }, { "menu_add", {menu_add, 0} }, { "menu_add_separator", {menu_add_separator, TRUE} }, - { "menu_remove", {menu_remove, 0} } + { "menu_remove", {menu_remove, TRUE} } }; void |