Fixed gdk_window_beep() to pass the toplevel instance to the toplevel's implementation vfunc.

This incorrect assignment would cause asynchronous aborts from the X server
(they would occur if for instance, an offscreen GtkTreeView calls
gtk_widget_error_bell()).
This commit is contained in:
Tristan Van Berkom 2011-03-10 14:08:15 +09:00
parent 549c249d1a
commit 713fd43c8f

View File

@ -7968,7 +7968,7 @@ gdk_window_beep (GdkWindow *window)
if (toplevel)
{
if (GDK_WINDOW_IMPL_GET_CLASS (toplevel->impl)->beep (window))
if (GDK_WINDOW_IMPL_GET_CLASS (toplevel->impl)->beep (toplevel))
return;
}