diff options
-rw-r--r-- | api/dwb-js.7 | 40 | ||||
-rw-r--r-- | api/jsapi.7.txt | 13 | ||||
-rw-r--r-- | api/jsapi.txt | 20 | ||||
-rw-r--r-- | src/commands.c | 15 | ||||
-rw-r--r-- | src/scripts.c | 1 | ||||
-rw-r--r-- | src/scripts.h | 1 |
6 files changed, 2 insertions, 88 deletions
diff --git a/api/dwb-js.7 b/api/dwb-js.7 index d50bce98..75a23c91 100644 --- a/api/dwb-js.7 +++ b/api/dwb-js.7 @@ -2,12 +2,12 @@ .\" Title: dwb-js .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.0 <http://docbook.sf.net/> -.\" Date: 02/11/2013 +.\" Date: 02/12/2013 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "DWB\-JS" "7" "02/11/2013" "\ \&" "\ \&" +.TH "DWB\-JS" "7" "02/12/2013" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -2518,42 +2518,6 @@ The Download .nr an-break-flag 1 .br .ps +1 -\fBexecuteCommand\fR -.RS 4 -.sp -.if n \{\ -.RS 4 -.\} -.nf -signals\&.connect("executeCommand", function(detail)); -.fi -.if n \{\ -.RE -.\} -.sp -Emitted before a command is executed, return true to prevent the execution\&. -.PP -\fIdetail\&.command\fR -.RS 4 -The command that is executed\&. -.RE -.PP -\fIdetail\&.argument\fR -.RS 4 -The command that is executed\&. -.RE -.PP -\fIdetail\&.nummod\fR -.RS 4 -The numerical modifier, will be \-1 if no numerical modifier was used\&. -.RE -.RE -.sp -.it 1 an-trap -.nr an-no-space-flag 1 -.nr an-break-flag 1 -.br -.ps +1 \fBframeCreated\fR .RS 4 .sp diff --git a/api/jsapi.7.txt b/api/jsapi.7.txt index 4b8c8421..fc80d668 100644 --- a/api/jsapi.7.txt +++ b/api/jsapi.7.txt @@ -1257,19 +1257,6 @@ Emitted when the DownloadStatus changes. _download_;; The Download **** -==== executeCommand -**** ----- -signals.connect("executeCommand", function(detail)); ----- - -Emitted before a command is executed, return true to prevent the execution. - -_detail.command_;; The command that is executed. -_detail.argument_;; The command that is executed. -_detail.nummod_;; The numerical modifier, will be -1 if no numerical modifier -was used. -**** ==== frameCreated **** diff --git a/api/jsapi.txt b/api/jsapi.txt index 754b00b3..428cc806 100644 --- a/api/jsapi.txt +++ b/api/jsapi.txt @@ -2381,26 +2381,6 @@ Emitted when the <<DownloadStatus>> changes. _download_;; The <<Download>> **** -**** -[[executeCommand]] -[float] -==== *executeCommand* ==== - -[source,javascript] ----- -Boolean callback(detail) ----- - -Emitted before a command is executed, return true to prevent the execution. - - :: - -_detail.command_;; The command that is executed. -_detail.argument_;; The command that is executed. -_detail.nummod_;; The numerical modifier, will be -1 if no numerical modifier -was used. -**** - **** [[frameCreated]] diff --git a/src/commands.c b/src/commands.c index 3d052168..ffb7ff17 100644 --- a/src/commands.c +++ b/src/commands.c @@ -56,21 +56,6 @@ commands_simple_command(KeyMap *km, const char *argument) completion_clean_autocompletion(); } - if (EMIT_SCRIPT(EXECUTE_COMMAND)) - { - char *json = util_create_json(3, - CHAR, "command", km->map->n.first, - CHAR, "argument", argument, - INTEGER, "nummod", dwb.state.nummod); - ScriptSignal sig = { NULL, SCRIPTS_SIG_META(json, EXECUTE_COMMAND, 0) } ; - - gboolean prevent = scripts_emit(&sig); - g_free(json); - - if (prevent) - return STATUS_OK; - } - ret = func(km, arg); switch (ret) { diff --git a/src/scripts.c b/src/scripts.c index d935c373..9ecb106c 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -97,7 +97,6 @@ static Sigmap s_sigmap[] = { { SCRIPTS_SIG_STATUS_BAR, "statusBarChange" }, { SCRIPTS_SIG_TAB_BUTTON_PRESS, "tabButtonPress" }, { SCRIPTS_SIG_CHANGE_MODE, "changeMode" }, - { SCRIPTS_SIG_EXECUTE_COMMAND, "executeCommand" }, { 0, NULL }, }; diff --git a/src/scripts.h b/src/scripts.h index 77203f25..77a400a8 100644 --- a/src/scripts.h +++ b/src/scripts.h @@ -47,7 +47,6 @@ enum SIGNALS { SCRIPTS_SIG_STATUS_BAR, SCRIPTS_SIG_TAB_BUTTON_PRESS, SCRIPTS_SIG_CHANGE_MODE, - SCRIPTS_SIG_EXECUTE_COMMAND, SCRIPTS_SIG_LAST, } ; |