[epiphany] EphyWebView: Avoid a dangling signal handler
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] EphyWebView: Avoid a dangling signal handler
- Date: Fri, 7 Feb 2014 21:49:59 +0000 (UTC)
commit bbb6d6a639aa1e41d97349232b5247174b809133
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Feb 7 23:24:06 2014 +0200
EphyWebView: Avoid a dangling signal handler
We should use g_signal_connect_object() with the page-created
EmbedShell to avoid the callback to be called for the webview
after this is destroyed.
https://bugzilla.gnome.org/show_bug.cgi?id=723725
embed/ephy-web-view.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 9c58bcb..874b7d6 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2022,9 +2022,9 @@ ephy_web_view_init (EphyWebView *web_view)
G_CALLBACK (ge_popup_blocked_cb),
NULL);
- g_signal_connect (ephy_embed_shell_get_default (), "page-created",
- G_CALLBACK (page_created_cb),
- web_view);
+ g_signal_connect_object (ephy_embed_shell_get_default (), "page-created",
+ G_CALLBACK (page_created_cb),
+ web_view, 0);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]