gobject-introspection r407 - in trunk: . tests/scanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r407 - in trunk: . tests/scanner
- Date: Tue, 19 Aug 2008 22:53:15 +0000 (UTC)
Author: johan
Date: Tue Aug 19 22:53:14 2008
New Revision: 407
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=407&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/tests/scanner/Foo-expected.gir
trunk/tests/scanner/foo-object.h
trunk/tests/scanner/foo.c
Modified: trunk/tests/scanner/Foo-expected.gir
==============================================================================
--- trunk/tests/scanner/Foo-expected.gir (original)
+++ trunk/tests/scanner/Foo-expected.gir Tue Aug 19 22:53:14 2008
@@ -431,5 +431,16 @@
<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>
Modified: trunk/tests/scanner/foo-object.h
==============================================================================
--- trunk/tests/scanner/foo-object.h (original)
+++ trunk/tests/scanner/foo-object.h Tue Aug 19 22:53:14 2008
@@ -183,4 +183,24 @@
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__ */
Modified: trunk/tests/scanner/foo.c
==============================================================================
--- trunk/tests/scanner/foo.c (original)
+++ trunk/tests/scanner/foo.c Tue Aug 19 22:53:14 2008
@@ -423,3 +423,17 @@
{
}
+
+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)
+{
+
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]