]> Pileus Git - ~andy/gtk/commitdiff
Fix a segfault in gdk_window_beep
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 Dec 2010 22:25:40 +0000 (17:25 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Dec 2010 22:25:40 +0000 (17:25 -0500)
Not a good idea to cast an instance to a class...

gdk/gdkwindow.c

index 4307f34ae93fa6b2745101ab4555e8a3fb996271..71959ee9731da61b9febaa6255c8ee38eee72f78 100644 (file)
@@ -8052,7 +8052,7 @@ gdk_window_beep (GdkWindow *window)
 
   if (toplevel)
     {
-      if (GDK_WINDOW_IMPL_CLASS (toplevel)->beep (window))
+      if (GDK_WINDOW_IMPL_GET_CLASS (toplevel->impl)->beep (window))
         return;
     }