isurf: see hover URL without changing title - surf - Surf web browser. Err gopher.r-36.net 70 i Err gopher.r-36.net 70 1Log /scm/surf//log.gph gopher.r-36.net 70 1Files /scm/surf//files.gph gopher.r-36.net 70 1Refs /scm/surf//refs.gph gopher.r-36.net 70 1README /scm/surf//file/README.gph gopher.r-36.net 70 1LICENSE /scm/surf//file/LICENSE.gph gopher.r-36.net 70 i--- Err gopher.r-36.net 70 1commit f7e358280cb3bda1f8c46ca021fe94b59a984f5d /scm/surf//commit/f7e358280cb3bda1f8c46ca021fe94b59a984f5d.gph gopher.r-36.net 70 1parent b3a4392923b26e81c4faa35907a4a2d071e2275f /scm/surf//commit/b3a4392923b26e81c4faa35907a4a2d071e2275f.gph gopher.r-36.net 70 hAuthor: Greg Reagle URL:mailto:greg.reagle@umbc.edu gopher.r-36.net 70 iDate: Tue, 27 Jan 2015 13:26:26 -0500 Err gopher.r-36.net 70 i Err gopher.r-36.net 70 isurf: see hover URL without changing title Err gopher.r-36.net 70 i Err gopher.r-36.net 70 iOn Tue, Jan 27, 2015, at 11:52 AM, Christoph Lohmann wrote: Err gopher.r-36.net 70 i> Then hook to the window leaving event in GTK or X11 and set the title to Err gopher.r-36.net 70 i> your needs. I will welcome a patch. Err gopher.r-36.net 70 i Err gopher.r-36.net 70 iPatch is attached. I am a total novice in GTK programming, so I don't Err gopher.r-36.net 70 iknow what type the callback function is supposed to be (hence the void Err gopher.r-36.net 70 ipointers) or whether I registered it properly. But it does work well Err gopher.r-36.net 70 ifor me. Err gopher.r-36.net 70 i Err gopher.r-36.net 70 i-- Err gopher.r-36.net 70 ihttp://www.fastmail.com - Access your email from home and the web Err gopher.r-36.net 70 i Err gopher.r-36.net 70 iFrom a33f06da092bf920b6a286ea7688b32944d79a50 Mon Sep 17 00:00:00 2001 Err gopher.r-36.net 70 iFrom: Greg Reagle Err gopher.r-36.net 70 iDate: Tue, 27 Jan 2015 13:22:15 -0500 Err gopher.r-36.net 70 iSubject: [PATCH] ensure that window title is web page title (not hover link) Err gopher.r-36.net 70 i when leaving window Err gopher.r-36.net 70 i Err gopher.r-36.net 70 iSigned-off-by: Christoph Lohmann <20h@r-36.net> Err gopher.r-36.net 70 i Err gopher.r-36.net 70 iDiffstat: Err gopher.r-36.net 70 i surf.c | 10 ++++++++++ Err gopher.r-36.net 70 i Err gopher.r-36.net 70 i1 file changed, 10 insertions(+), 0 deletions(-) Err gopher.r-36.net 70 i--- Err gopher.r-36.net 70 1diff --git a/surf.c b/surf.c /scm/surf//file/surf.c.gph gopher.r-36.net 70 i@@ -179,6 +179,7 @@ static void source(Client *c, const Arg *arg); Err gopher.r-36.net 70 i static void spawn(Client *c, const Arg *arg); Err gopher.r-36.net 70 i static void stop(Client *c, const Arg *arg); Err gopher.r-36.net 70 i static void titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c); Err gopher.r-36.net 70 i+static void titlechangeleave(void *a, void *b, Client *c); Err gopher.r-36.net 70 i static void toggle(Client *c, const Arg *arg); Err gopher.r-36.net 70 i static void togglecookiepolicy(Client *c, const Arg *arg); Err gopher.r-36.net 70 i static void togglegeolocation(Client *c, const Arg *arg); Err gopher.r-36.net 70 i@@ -805,6 +806,9 @@ newclient(void) { Err gopher.r-36.net 70 i g_signal_connect(G_OBJECT(c->win), Err gopher.r-36.net 70 i "destroy", Err gopher.r-36.net 70 i G_CALLBACK(destroywin), c); Err gopher.r-36.net 70 i+ g_signal_connect(G_OBJECT(c->win), Err gopher.r-36.net 70 i+ "leave_notify_event", Err gopher.r-36.net 70 i+ G_CALLBACK(titlechangeleave), c); Err gopher.r-36.net 70 i Err gopher.r-36.net 70 i if(!kioskmode) Err gopher.r-36.net 70 i addaccelgroup(c); Err gopher.r-36.net 70 i@@ -1299,6 +1303,12 @@ titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c) { Err gopher.r-36.net 70 i } Err gopher.r-36.net 70 i Err gopher.r-36.net 70 i static void Err gopher.r-36.net 70 i+ttitlechangeleave(void *a, void *b, Client *c) { Err gopher.r-36.net 70 i+ c->linkhover = NULL; Err gopher.r-36.net 70 i+ updatetitle(c); Err gopher.r-36.net 70 i+} Err gopher.r-36.net 70 i+ Err gopher.r-36.net 70 i+static void Err gopher.r-36.net 70 i ttoggle(Client *c, const Arg *arg) { Err gopher.r-36.net 70 i WebKitWebSettings *settings; Err gopher.r-36.net 70 i char *name = (char *)arg->v; Err gopher.r-36.net 70 .