]> Pileus Git - ~andy/gtk/blobdiff - gdk/gdkwindowimpl.c
API: gdk: Remove gdk_set_pointer_hooks()
[~andy/gtk] / gdk / gdkwindowimpl.c
index 22f59e0b416f57a1f33e29b206240b361eda945b..ef81fcffd0fc1197897baf4d3df42e3f816ef29d 100644 (file)
  */
 
 #include "config.h"
+
 #include "gdkwindowimpl.h"
+
 #include "gdkinternals.h"
 
-GType
-gdk_window_impl_get_type (void)
+
+G_DEFINE_TYPE (GdkWindowImpl, gdk_window_impl, G_TYPE_OBJECT);
+
+static gboolean
+gdk_window_impl_beep (GdkWindow *window)
+{
+  /* FALSE means windows can't beep, so the display will be
+   * made to beep instead. */
+  return FALSE;
+}
+
+static void
+gdk_window_impl_class_init (GdkWindowImplClass *impl_class)
+{
+  impl_class->beep = gdk_window_impl_beep;
+}
+
+static void
+gdk_window_impl_init (GdkWindowImpl *impl)
 {
-  static GType gtype = 0;
-
-  if (G_UNLIKELY (!gtype))
-    {
-      gtype = g_type_register_static_simple (G_TYPE_INTERFACE,
-                                             "GdkWindowImpl",
-                                             sizeof (GdkWindowImplIface),
-                                             NULL, 0, NULL, 0);
-      g_type_interface_add_prerequisite (gtype, G_TYPE_OBJECT);
-    }
-
-  return gtype;
 }