diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-17 19:19:34 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-17 19:19:34 +0800 |
commit | 20535b372ed7bf3f2415d6a6c1c8d6c26276bf84 (patch) | |
tree | 4fbfe8dd35a0e597b05f6e82ee70736ba8919094 /src/ephy-tab.c | |
parent | 093c9ba7810a01f32d7f9c1c23b01ac47a7fe0ea (diff) | |
download | gsoc2013-epiphany-20535b372ed7bf3f2415d6a6c1c8d6c26276bf84.tar gsoc2013-epiphany-20535b372ed7bf3f2415d6a6c1c8d6c26276bf84.tar.gz gsoc2013-epiphany-20535b372ed7bf3f2415d6a6c1c8d6c26276bf84.tar.bz2 gsoc2013-epiphany-20535b372ed7bf3f2415d6a6c1c8d6c26276bf84.tar.lz gsoc2013-epiphany-20535b372ed7bf3f2415d6a6c1c8d6c26276bf84.tar.xz gsoc2013-epiphany-20535b372ed7bf3f2415d6a6c1c8d6c26276bf84.tar.zst gsoc2013-epiphany-20535b372ed7bf3f2415d6a6c1c8d6c26276bf84.zip |
Use g_signal_connect_object to connect the embed signals, that way they're
2004-01-17 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/mozilla-embed.cpp:
* src/ephy-tab.c: (ephy_tab_init):
Use g_signal_connect_object to connect the embed signals,
that way they're disconnected before the tab object is
finalised. Should fix crasher bug #131635.
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r-- | src/ephy-tab.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c index cecaa2a7a..4d027df27 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -1146,48 +1146,48 @@ ephy_tab_init (EphyTab *tab) /* set a pointer in the embed's widget back to the tab */ g_object_set_data (embed_widget, "ephy-tab", tab); - g_signal_connect (embed_widget, "parent_set", - G_CALLBACK (ephy_tab_parent_set_cb), - tab); - g_signal_connect (embed_widget, "destroy", - G_CALLBACK (ephy_tab_embed_destroy_cb), - tab); - g_signal_connect (embed, "link_message", - G_CALLBACK (ephy_tab_link_message_cb), - tab); - g_signal_connect (embed, "ge_location", - G_CALLBACK (ephy_tab_address_cb), - tab); - g_signal_connect (embed, "title", - G_CALLBACK (ephy_tab_title_cb), - tab); - g_signal_connect (embed, "ge_zoom_change", - G_CALLBACK (ephy_tab_zoom_changed_cb), - tab); - g_signal_connect (embed, "ge_net_state", - G_CALLBACK (ephy_tab_net_state_cb), - tab); - g_signal_connect (embed, "ge_new_window", - G_CALLBACK (ephy_tab_new_window_cb), - tab); - g_signal_connect (embed, "visibility", - G_CALLBACK (ephy_tab_visibility_cb), - tab); - g_signal_connect (embed, "destroy_browser", - G_CALLBACK (ephy_tab_destroy_brsr_cb), - tab); - g_signal_connect (embed, "size_to", - G_CALLBACK (ephy_tab_size_to_cb), - tab); - g_signal_connect (embed, "ge_dom_mouse_click", - G_CALLBACK (ephy_tab_dom_mouse_click_cb), - tab); - g_signal_connect (embed, "ge_security_change", - G_CALLBACK (ephy_tab_security_change_cb), - tab); - g_signal_connect (embed, "ge_favicon", - G_CALLBACK (ephy_tab_favicon_cb), - tab); + g_signal_connect_object (embed_widget, "parent_set", + G_CALLBACK (ephy_tab_parent_set_cb), + tab, 0); + g_signal_connect_object (embed_widget, "destroy", + G_CALLBACK (ephy_tab_embed_destroy_cb), + tab, 0); + g_signal_connect_object (embed, "link_message", + G_CALLBACK (ephy_tab_link_message_cb), + tab, 0); + g_signal_connect_object (embed, "ge_location", + G_CALLBACK (ephy_tab_address_cb), + tab, 0); + g_signal_connect_object (embed, "title", + G_CALLBACK (ephy_tab_title_cb), + tab, 0); + g_signal_connect_object (embed, "ge_zoom_change", + G_CALLBACK (ephy_tab_zoom_changed_cb), + tab, 0); + g_signal_connect_object (embed, "ge_net_state", + G_CALLBACK (ephy_tab_net_state_cb), + tab, 0); + g_signal_connect_object (embed, "ge_new_window", + G_CALLBACK (ephy_tab_new_window_cb), + tab, 0); + g_signal_connect_object (embed, "visibility", + G_CALLBACK (ephy_tab_visibility_cb), + tab, 0); + g_signal_connect_object (embed, "destroy_browser", + G_CALLBACK (ephy_tab_destroy_brsr_cb), + tab, 0); + g_signal_connect_object (embed, "size_to", + G_CALLBACK (ephy_tab_size_to_cb), + tab, 0); + g_signal_connect_object (embed, "ge_dom_mouse_click", + G_CALLBACK (ephy_tab_dom_mouse_click_cb), + tab, 0); + g_signal_connect_object (embed, "ge_security_change", + G_CALLBACK (ephy_tab_security_change_cb), + tab, 0); + g_signal_connect_object (embed, "ge_favicon", + G_CALLBACK (ephy_tab_favicon_cb), + tab, 0); cache = EPHY_FAVICON_CACHE (ephy_embed_shell_get_favicon_cache (EPHY_EMBED_SHELL (ephy_shell))); |