diff options
-rw-r--r-- | api/dwb-js.7 | 40 | ||||
-rw-r--r-- | api/jsapi.7.txt | 14 | ||||
-rw-r--r-- | api/jsapi.txt | 19 | ||||
-rw-r--r-- | src/scripts.c | 1 | ||||
-rw-r--r-- | src/scripts.h | 1 | ||||
-rw-r--r-- | src/view.c | 7 |
6 files changed, 2 insertions, 80 deletions
diff --git a/api/dwb-js.7 b/api/dwb-js.7 index 9abfdd72..9a51c580 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.77.1 <http://docbook.sf.net/> -.\" Date: 01/08/2013 +.\" Date: 01/09/2013 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "DWB\-JS" "7" "01/08/2013" "\ \&" "\ \&" +.TH "DWB\-JS" "7" "01/09/2013" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -2497,42 +2497,6 @@ The frame .nr an-break-flag 1 .br .ps +1 -\fBhoveringOverLink\fR -.RS 4 -.sp -.if n \{\ -.RS 4 -.\} -.nf -signals\&.connect("hoveringOverLink", function(webview, json)); -.fi -.if n \{\ -.RE -.\} -.sp -Emitted when the mouse is over a link -.PP -\fIwebview\fR -.RS 4 -The webview that emitted the signal -.RE -.PP -\fIjson\&.uri\fR -.RS 4 -The uri of the link or null if there is no link under the pointer, i\&.e\&. the pointer left a link -.RE -.PP -\fIjson\&.title\fR -.RS 4 -The link\(cqs title or null if the pointer left a link -.RE -.RE -.sp -.it 1 an-trap -.nr an-no-space-flag 1 -.nr an-break-flag 1 -.br -.ps +1 \fBkeyPress\fR .RS 4 .sp diff --git a/api/jsapi.7.txt b/api/jsapi.7.txt index ee95dd0e..cc79f73b 100644 --- a/api/jsapi.7.txt +++ b/api/jsapi.7.txt @@ -1237,20 +1237,6 @@ _webview_;; The webview the frame belongs to _frame_;; The frame **** -==== hoveringOverLink -**** - ----- -signals.connect("hoveringOverLink", function(webview, json)); ----- - -Emitted when the mouse is over a link - -_webview_;; The webview that emitted the signal -_json.uri_;; The uri of the link or null if there is no link under the pointer, i.e. the pointer left a link -_json.title_;; The link's title or null if the pointer left a link -**** - ==== keyPress **** ---- diff --git a/api/jsapi.txt b/api/jsapi.txt index 97b6dc43..0de6b314 100644 --- a/api/jsapi.txt +++ b/api/jsapi.txt @@ -2348,25 +2348,6 @@ _frame_;; The frame **** **** -[[hoveringOverLink]] -[float] -==== *hoveringOverLink* ==== - -[source,javascript] ----- -void callback(webview, json) ----- - -Emitted when the mouse is over a link - - :: - -_webview_;; The webview that emitted the signal -_json.uri_;; The uri of the link or +null+ if there is no link under the pointer, i.e. the pointer left a link -_json.title_;; The link's title or +null+ if the pointer left a link -**** - -**** [[keyPress]] [float] ==== *keyPress* ==== diff --git a/src/scripts.c b/src/scripts.c index 89d81e03..1d009110 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -88,7 +88,6 @@ static Sigmap s_sigmap[] = { { SCRIPTS_SIG_FRAME_STATUS, "frameStatus" }, { SCRIPTS_SIG_LOAD_FINISHED, "loadFinished" }, { SCRIPTS_SIG_LOAD_COMMITTED, "loadCommitted" }, - { SCRIPTS_SIG_HOVERING_OVER_LINK, "hoveringOverLink" }, { SCRIPTS_SIG_CLOSE_TAB, "closeTab" }, { SCRIPTS_SIG_CREATE_TAB, "createTab" }, { SCRIPTS_SIG_FRAME_CREATED, "frameCreated" }, diff --git a/src/scripts.h b/src/scripts.h index 16767f0a..77a400a8 100644 --- a/src/scripts.h +++ b/src/scripts.h @@ -38,7 +38,6 @@ enum SIGNALS { SCRIPTS_SIG_FRAME_STATUS, SCRIPTS_SIG_LOAD_FINISHED, SCRIPTS_SIG_LOAD_COMMITTED, - SCRIPTS_SIG_HOVERING_OVER_LINK, SCRIPTS_SIG_CLOSE_TAB, SCRIPTS_SIG_CREATE_TAB, SCRIPTS_SIG_FRAME_CREATED, @@ -392,13 +392,6 @@ view_inspect_web_view_cb(WebKitWebInspector *inspector, WebKitWebView *wv, GList static void view_hovering_over_link_cb(WebKitWebView *web, char *title, char *uri, GList *gl) { - if (EMIT_SCRIPT(HOVERING_OVER_LINK)) - { - char *json = util_create_json(2, CHAR, "uri", uri, CHAR, "title", title); - ScriptSignal signal = { SCRIPTS_WV(gl), SCRIPTS_SIG_META(json, HOVERING_OVER_LINK, 0) }; - scripts_emit(&signal); - g_free(json); - } if (uri) { VIEW(gl)->status->hover_uri = g_strdup(uri); |