aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl-core.c
diff options
context:
space:
mode:
authorGravatar Robert Manea <gotmor@gmail.com>2009-09-21 11:42:01 +0200
committerGravatar Robert Manea <gotmor@gmail.com>2009-09-21 11:42:01 +0200
commit05f80ed124619901c3b510056f150ae7370a603f (patch)
treec1908fa630e3105342b789ef20da38b0ca1932fc /uzbl-core.c
parenta4b4914ff82d895710af3bc1834abd881ddab246 (diff)
make LINK_HOVER report unhover events
Diffstat (limited to 'uzbl-core.c')
-rw-r--r--uzbl-core.c4
1 files changed, 4 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();
}