diff options
| author | Quentin Rameau <quinq.ml@gmail.com> | 2014-02-06 18:54:38 +0100 | 
|---|---|---|
| committer | Christoph Lohmann <20h@r-36.net> | 2014-02-06 19:14:36 +0100 | 
| commit | 3cc5f87db85f84e37666936d42d5345daef94ad3 (patch) | |
| tree | 7e4cca64ce72918a0e184f4d3671f889e60e19fa | |
| parent | 637902b452c723e8d5fdb714e8a38861e9c9f64e (diff) | |
| download | surf-3cc5f87db85f84e37666936d42d5345daef94ad3.tar.gz surf-3cc5f87db85f84e37666936d42d5345daef94ad3.tar.bz2 surf-3cc5f87db85f84e37666936d42d5345daef94ad3.zip | |
deprecating signal “title-changed” for “notify::title”
Signed-off-by: Christoph Lohmann <20h@r-36.net>
| -rw-r--r-- | surf.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| @@ -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); @@ -749,7 +748,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", @@ -1178,7 +1177,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);  } | 
