aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-03-19 01:26:47 +0800
committerXan Lopez <xlopez@igalia.com>2011-03-19 01:27:58 +0800
commit5826aef165d4665fc953291249aa9b8f1dfe7330 (patch)
tree0331f92313e3d20ab2c611c2df07ea9c24ba6117
parente3c0b04539bf06bd4b869a33ed4e2ff2c69e9446 (diff)
downloadgsoc2013-epiphany-5826aef165d4665fc953291249aa9b8f1dfe7330.tar
gsoc2013-epiphany-5826aef165d4665fc953291249aa9b8f1dfe7330.tar.gz
gsoc2013-epiphany-5826aef165d4665fc953291249aa9b8f1dfe7330.tar.bz2
gsoc2013-epiphany-5826aef165d4665fc953291249aa9b8f1dfe7330.tar.lz
gsoc2013-epiphany-5826aef165d4665fc953291249aa9b8f1dfe7330.tar.xz
gsoc2013-epiphany-5826aef165d4665fc953291249aa9b8f1dfe7330.tar.zst
gsoc2013-epiphany-5826aef165d4665fc953291249aa9b8f1dfe7330.zip
ephy-web-view: use new API for DOM events
This requires WebKitGTK+ r81486, soon to be 1.3.13.
-rw-r--r--embed/ephy-web-view.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index f99e3423f..86baa5184 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -976,8 +976,9 @@ _ephy_web_view_hook_into_forms (EphyWebView *web_view)
/* We have a field that may be the user, and one for a password. */
if (username_node && password_node) {
LOG ("Hooking and pre-filling a form");
- g_signal_connect (form, "submit-event",
- G_CALLBACK (form_submitted_cb), web_view);
+ webkit_dom_event_target_add_event_listener (WEBKIT_DOM_EVENT_TARGET (form), "submit",
+ G_CALLBACK (form_submitted_cb), false,
+ web_view);
pre_fill_form (username_node, password_node, web_view);