[epiphany] ephy-web-view: use new API for DOM events



commit 5826aef165d4665fc953291249aa9b8f1dfe7330
Author: Xan Lopez <xlopez igalia com>
Date:   Fri Mar 18 18:26:47 2011 +0100

    ephy-web-view: use new API for DOM events
    
    This requires WebKitGTK+ r81486, soon to be 1.3.13.

 embed/ephy-web-view.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index f99e342..86baa51 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]