Remove destroy callback from web view

This commit is contained in:
Christian Dywan 2009-02-21 22:12:34 +01:00
parent 04a65f0f90
commit f5e6006954

View 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,