Linux: Emit "delete_event" signal instead of calling gtk_widget_destroy (issue #780).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1037 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
57174f07d4
commit
e8fd7a97b8
|
@ -189,7 +189,7 @@ int CefBrowserImpl::UIT_GetPagesCount(WebKit::WebFrame* frame) {
|
||||||
// static
|
// static
|
||||||
void CefBrowserImpl::UIT_CloseView(gfx::NativeView view) {
|
void CefBrowserImpl::UIT_CloseView(gfx::NativeView view) {
|
||||||
GtkWidget* window = gtk_widget_get_toplevel(GTK_WIDGET(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
|
// static
|
||||||
|
|
Loading…
Reference in New Issue