diff --git a/cef1/libcef/browser_impl_gtk.cc b/cef1/libcef/browser_impl_gtk.cc index 5a146e85b..1f44b07d1 100644 --- a/cef1/libcef/browser_impl_gtk.cc +++ b/cef1/libcef/browser_impl_gtk.cc @@ -189,7 +189,7 @@ int CefBrowserImpl::UIT_GetPagesCount(WebKit::WebFrame* frame) { // static void CefBrowserImpl::UIT_CloseView(gfx::NativeView view) { GtkWidget* window = gtk_widget_get_toplevel(GTK_WIDGET(view)); - gtk_widget_destroy(window); + gtk_signal_emit_by_name(GTK_OBJECT(window), "delete_event"); } // static