diff options
author | Robert Manea <gotmor@gmail.com> | 2009-09-21 11:42:01 +0200 |
---|---|---|
committer | Robert Manea <gotmor@gmail.com> | 2009-09-21 11:42:01 +0200 |
commit | 05f80ed124619901c3b510056f150ae7370a603f (patch) | |
tree | c1908fa630e3105342b789ef20da38b0ca1932fc | |
parent | a4b4914ff82d895710af3bc1834abd881ddab246 (diff) |
make LINK_HOVER report unhover events
-rw-r--r-- | uzbl-core.c | 4 | ||||
-rw-r--r-- | uzbl-core.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/uzbl-core.c b/uzbl-core.c index 04089d8..71bca80 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -834,10 +834,14 @@ link_hover_cb (WebKitWebView* page, const gchar* title, const gchar* link, gpoin //Set selected_url state variable g_free(uzbl.state.selected_url); uzbl.state.selected_url = NULL; + if (link) { uzbl.state.selected_url = g_strdup(link); send_event(LINK_HOVER, uzbl.state.selected_url, NULL); } + else + send_event(LINK_HOVER, "", NULL); + update_title(); } diff --git a/uzbl-core.h b/uzbl-core.h index 9801e52..b7db61d 100644 --- a/uzbl-core.h +++ b/uzbl-core.h @@ -581,4 +581,7 @@ void cmd_view_source(); */ +void +cmd_load_start(); + /* vi: set et ts=4: */ |