[gtk+] Fixed gdk_window_beep() to pass the toplevel instance to the toplevel's implementation vfunc.



commit 713fd43c8f3b9eac7633cdb8e37d4d78e27e48fc
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Thu Mar 10 14:08:15 2011 +0900

    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()).

 gdk/gdkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 57a3187..e3177f0 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -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;
     }
   



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]