Add a based on GdkDrawable which generates a broken gir.
authorJohan Dahlin <johan@gnome.org>
Tue, 19 Aug 2008 22:53:14 +0000 (22:53 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Tue, 19 Aug 2008 22:53:14 +0000 (22:53 +0000)
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.

svn path=/trunk/; revision=407

ChangeLog
tests/scanner/Foo-expected.gir
tests/scanner/foo-object.h
tests/scanner/foo.c

index b2f7019..f7ee058 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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
index 3291b06..c90a83b 100644 (file)
         <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>
index c53cbfd..1620434 100644 (file)
@@ -183,4 +183,24 @@ union _FooEvent
 
 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__ */
index aa47cd6..8b37e23 100644 (file)
@@ -423,3 +423,17 @@ foo_boxed_method (FooBoxed *boxed)
 {
 
 }
+
+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)
+{
+
+}