]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkaccessible.c
Practically everything changed.
[~andy/gtk] / gtk / gtkaccessible.c
index d6cb43cbdbc0ef1877704b90d03c77bb024f5938..29618c299ae12f64fe87a34bd3a5bc2bfbf45013 100644 (file)
@@ -1,4 +1,4 @@
-/* GTK - The GIMP Toolkit
+/* GTK - The GTK+ Toolkit
  * Copyright 2001 Sun Microsystems Inc.
  *
  * This library is free software; you can redistribute it and/or
@@ -17,7 +17,7 @@
  * Boston, MA 02111-1307, USA.
  */
 
-#include <config.h>
+#include "config.h"
 #include <string.h>
 
 #include "gtkwidget.h"
 #include "gtkaccessible.h"
 #include "gtkalias.h"
 
-static void gtk_accessible_class_init (GtkAccessibleClass *klass);
-
 static void gtk_accessible_real_connect_widget_destroyed (GtkAccessible *accessible);
 
-GType
-gtk_accessible_get_type (void)
-{
-  static GType accessible_type = 0;
-
-  if (!accessible_type)
-    {
-      static const GTypeInfo accessible_info =
-      {
-       sizeof (GtkAccessibleClass),
-       NULL,           /* base_init */
-       NULL,           /* base_finalize */
-       (GClassInitFunc) gtk_accessible_class_init,
-       NULL,           /* class_finalize */
-       NULL,           /* class_data */
-       sizeof (GtkAccessible),
-       16,             /* n_preallocs */
-       (GInstanceInitFunc) NULL,
-      };
+G_DEFINE_TYPE (GtkAccessible, gtk_accessible, ATK_TYPE_OBJECT)
 
-      accessible_type =
-       g_type_register_static (ATK_TYPE_OBJECT, I_("GtkAccessible"),
-                               &accessible_info, 0);
-    }
-
-  return accessible_type;
+static void
+gtk_accessible_init (GtkAccessible *object)
+{
 }
 
 static void