]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkaccessible.c
Display an error when we come to the root.
[~andy/gtk] / gtk / gtkaccessible.c
index 43632a09850196c036dfa856cfa4640ec508ea13..ceaac5f6cd2fc28251b4d21a568c97229ee1abe4 100644 (file)
 #include <string.h>
 
 #include "gtkwidget.h"
+#include "gtkintl.h"
 #include "gtkaccessible.h"
-
-static void gtk_accessible_class_init (GtkAccessibleClass *klass);
+#include "gtkalias.h"
 
 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,
-      };
-
-      accessible_type =
-       g_type_register_static (ATK_TYPE_OBJECT, "GtkAccessible",
-                               &accessible_info, 0);
-    }
+G_DEFINE_TYPE (GtkAccessible, gtk_accessible, ATK_TYPE_OBJECT)
 
-  return accessible_type;
+static void
+gtk_accessible_init (GtkAccessible *object)
+{
 }
 
 static void
@@ -92,3 +71,6 @@ gtk_accessible_real_connect_widget_destroyed (GtkAccessible *accessible)
                       &accessible->widget);
   }
 }
+
+#define __GTK_ACCESSIBLE_C__
+#include "gtkaliasdef.c"