Passing the webview as userdata when the webview is the object

Wed, 04 Jan 2012 02:48:04 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Wed, 04 Jan 2012 02:48:04 +0000
changeset 32799
918d0fc9a651
parent 32798
8b3b9ddcd0bd
child 32800
67649fafdb51

Passing the webview as userdata when the webview is the object
emitting the signal seems a bit redundant to me.

pidgin/gtkwebview.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkwebview.c	Wed Jan 04 02:35:22 2012 +0000
+++ b/pidgin/gtkwebview.c	Wed Jan 04 02:48:04 2012 +0000
@@ -324,16 +324,13 @@
 	priv->js_queue = g_queue_new();
 
 	g_signal_connect(webview, "navigation-policy-decision-requested",
-			  G_CALLBACK(webview_link_clicked),
-			  webview);
+			  G_CALLBACK(webview_link_clicked), NULL);
 
 	g_signal_connect(webview, "load-started",
-			  G_CALLBACK(webview_load_started),
-			  webview);
+			  G_CALLBACK(webview_load_started), NULL);
 
 	g_signal_connect(webview, "load-finished",
-			  G_CALLBACK(webview_load_finished),
-			  webview);
+			  G_CALLBACK(webview_load_finished), NULL);
 }
 
 GType

mercurial