]> spindle.queued.net Git - midori/commitdiff
Remove destroy callback from web view
authorChristian Dywan <christian@twotoasts.de>
Sat, 21 Feb 2009 21:12:34 +0000 (22:12 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 21 Feb 2009 21:12:34 +0000 (22:12 +0100)
midori/midori-view.c

index 850806ded2fb0a9b8742aca87788effc5f1154c0..d49c0374d248ad7f1f31ccbadb1d86519bf67bf0 100644 (file)
@@ -1159,14 +1159,6 @@ webkit_web_view_window_object_cleared_cb (GtkWidget*      web_view,
     g_signal_emit (view, signals[CONTEXT_READY], 0, js_context);
 }
 
-static void
-webkit_web_view_destroy_cb (GtkWidget*      web_view,
-                            WebKitWebFrame* web_frame)
-{
-    g_signal_handlers_disconnect_by_func (web_frame,
-        webkit_web_frame_load_done_cb, gtk_widget_get_parent (web_view));
-}
-
 static void
 midori_view_init (MidoriView* view)
 {
@@ -1557,8 +1549,6 @@ midori_view_construct_web_view (MidoriView* view)
                       webkit_web_view_console_message_cb, view,
                       "signal::window-object-cleared",
                       webkit_web_view_window_object_cleared_cb, view,
-                      "signal::destroy",
-                      webkit_web_view_destroy_cb, web_frame,
                       NULL);
     if (g_signal_lookup ("create-web-view", WEBKIT_TYPE_WEB_VIEW))
         g_object_connect (view->web_view,