From f849aac3bd668c87ab6af51a635ca94220d7da31 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Thu, 6 Feb 2014 18:54:38 +0100 Subject: [PATCH] =?UTF-8?q?deprecating=20signal=20=E2=80=9Ctitle-changed?= =?UTF-8?q?=E2=80=9D=20for=20=E2=80=9Cnotify::title=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- surf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/surf.c b/surf.c index 1ec4c62..87b5b17 100644 --- a/surf.c +++ b/surf.c @@ -164,8 +164,7 @@ static void sigchld(int unused); static void source(Client *c, const Arg *arg); static void spawn(Client *c, const Arg *arg); static void stop(Client *c, const Arg *arg); -static void titlechange(WebKitWebView *v, WebKitWebFrame *frame, - const char *title, Client *c); +static void titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c); static void toggle(Client *c, const Arg *arg); static void togglecookiepolicy(Client *c, const Arg *arg); static void togglegeolocation(Client *c, const Arg *arg); @@ -750,7 +749,7 @@ newclient(void) { c->view = WEBKIT_WEB_VIEW(webkit_web_view_new()); g_signal_connect(G_OBJECT(c->view), - "title-changed", + "notify::title", G_CALLBACK(titlechange), c); g_signal_connect(G_OBJECT(c->view), "hovering-over-link", @@ -1179,7 +1178,8 @@ stop(Client *c, const Arg *arg) { } static void -titlechange(WebKitWebView *v, WebKitWebFrame *f, const char *t, Client *c) { +titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c) { + const gchar *t = webkit_web_view_get_title(view); c->title = copystr(&c->title, t); updatetitle(c); } -- 1.8.5.3