aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-03-01 01:33:47 +0800
committerXan Lopez <xan@src.gnome.org>2008-03-01 01:33:47 +0800
commit83595e1254f3af0f123c7e9fa5124404b5ebfaa1 (patch)
tree4592ce147c612175de4ba3a2ef900333fc579275 /embed
parent71545e0b7bcceb6eee0b2333e531be7676ff0f8d (diff)
downloadgsoc2013-epiphany-83595e1254f3af0f123c7e9fa5124404b5ebfaa1.tar
gsoc2013-epiphany-83595e1254f3af0f123c7e9fa5124404b5ebfaa1.tar.gz
gsoc2013-epiphany-83595e1254f3af0f123c7e9fa5124404b5ebfaa1.tar.bz2
gsoc2013-epiphany-83595e1254f3af0f123c7e9fa5124404b5ebfaa1.tar.lz
gsoc2013-epiphany-83595e1254f3af0f123c7e9fa5124404b5ebfaa1.tar.xz
gsoc2013-epiphany-83595e1254f3af0f123c7e9fa5124404b5ebfaa1.tar.zst
gsoc2013-epiphany-83595e1254f3af0f123c7e9fa5124404b5ebfaa1.zip
Use g_object_connect for multiple signal connections to the same object.
svn path=/trunk/; revision=8005
Diffstat (limited to 'embed')
-rw-r--r--embed/webkit/webkit-embed.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index d08d36f97..b83d645c5 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -302,18 +302,14 @@ webkit_embed_init (WebKitEmbed *embed)
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);
}