epiphany r8005 - trunk/embed/webkit
- From: xan svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8005 - trunk/embed/webkit
- Date: Fri, 29 Feb 2008 17:33:47 +0000 (GMT)
Author: xan
Date: Fri Feb 29 17:33:47 2008
New Revision: 8005
URL: http://svn.gnome.org/viewvc/epiphany?rev=8005&view=rev
Log:
Use g_object_connect for multiple signal connections to the same object.
Modified:
trunk/embed/webkit/webkit-embed.c
Modified: trunk/embed/webkit/webkit-embed.c
==============================================================================
--- trunk/embed/webkit/webkit-embed.c (original)
+++ trunk/embed/webkit/webkit-embed.c Fri Feb 29 17:33:47 2008
@@ -302,18 +302,14 @@
gtk_container_add (GTK_CONTAINER (embed), sw);
- g_signal_connect (G_OBJECT (web_view), "load-committed",
- G_CALLBACK (webkit_embed_load_committed_cb), embed);
- g_signal_connect (G_OBJECT (web_view), "load-started",
- G_CALLBACK (webkit_embed_load_started_cb), embed);
- g_signal_connect (G_OBJECT (web_view), "load_finished",
- G_CALLBACK (webkit_embed_load_finished_cb), embed);
- g_signal_connect (G_OBJECT (web_view), "title-changed",
- G_CALLBACK (webkit_embed_title_changed_cb), embed);
- g_signal_connect (G_OBJECT (web_view), "load-progress-changed",
- G_CALLBACK (webkit_embed_load_progress_changed_cb), embed);
- g_signal_connect (G_OBJECT (web_view), "hovering-over-link",
- G_CALLBACK (webkit_embed_hovering_over_link_cb), embed);
+ g_object_connect (G_OBJECT (web_view),
+ "signal::load-committed", G_CALLBACK (webkit_embed_load_committed_cb), embed,
+ "signal::load-started", G_CALLBACK (webkit_embed_load_started_cb), embed,
+ "signal::load_finished", G_CALLBACK (webkit_embed_load_finished_cb), embed,
+ "signal::title-changed", G_CALLBACK (webkit_embed_title_changed_cb), embed,
+ "signal::load-progress-changed", G_CALLBACK (webkit_embed_load_progress_changed_cb), embed,
+ "signal::hovering-over-link", G_CALLBACK (webkit_embed_hovering_over_link_cb), embed,
+ NULL);
webkit_embed_prefs_add_embed (embed);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]