pidgin: 68079d4e: Passing the webview as userdata when the...

qulogic at pidgin.im qulogic at pidgin.im
Wed Jan 4 02:08:38 EST 2012


----------------------------------------------------------------------
Revision: 68079d4e2ff1a420fec998107ebca5c9ac7e82d2
Parent:   069350831810b6f4bd534a26fed03260a9b4adcd
Author:   qulogic at pidgin.im
Date:     01/03/12 21:48:04
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/68079d4e2ff1a420fec998107ebca5c9ac7e82d2

Changelog: 

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

Changes against parent 069350831810b6f4bd534a26fed03260a9b4adcd

  patched  pidgin/gtkwebview.c

-------------- next part --------------
============================================================
--- pidgin/gtkwebview.c	aebe8d3ac38d08b856a32360366592574b622e0e
+++ pidgin/gtkwebview.c	0631ed86ae60e14962703ba6baa33205cad82163
@@ -324,16 +324,13 @@ gtk_webview_init(GtkWebView *webview, gp
 	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


More information about the Commits mailing list