+2008-08-20 Johan Dahlin <johan@gnome.org>
+
+ * tests/scanner/Foo-expected.gir:
+ * tests/scanner/foo-object.h:
+ * tests/scanner/foo.c (foo_drawable_class_init),
+ (foo_drawable_init):
+ Add a based on GdkDrawable which generates
+ a broken gir.
+
2008-08-19 Colin Walters <walters@verbum.org>
* giscanner/transformer.py: Don't try
<type name="EventExpose" c:type="FooEventExpose"/>
</field>
</union>
+ <class name="Drawable"
+ c:type="FooDrawable"
+ parent="GObject.Object"
+ glib:type-name="FooDrawable"
+ glib:get-type="foo_drawable_get_type">
+ </class>
+ <record name="PixmapObjectClass" c:type="_FooPixmapObjectClass">
+ <field name="parent_class">
+ <type name="DrawableClass" c:type="FooDrawableClass"/>
+ </field>
+ </record>
</namespace>
</repository>
typedef void FooXEvent;
+typedef struct _FooDrawable FooDrawable;
+typedef struct _FooDrawableClass FooDrawableClass;
+
+struct _FooDrawable
+{
+ GObject parent_instance;
+};
+
+struct _FooDrawableClass
+{
+ GObjectClass parent_class;
+};
+
+GType foo_drawable_get_type (void) G_GNUC_CONST;
+
+struct _FooPixmapObjectClass
+{
+ FooDrawableClass parent_class;
+};
+
#endif /* __FOO_OBJECT_H__ */
{
}
+
+G_DEFINE_ABSTRACT_TYPE (FooDrawable, foo_drawable, G_TYPE_OBJECT);
+
+static void
+foo_drawable_class_init (FooDrawableClass *klass)
+{
+
+}
+
+static void
+foo_drawable_init (FooDrawable *drawable)
+{
+
+}