diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | tests/scanner/drawable-expected.gir | 13 | ||||
-rw-r--r-- | tests/scanner/drawable.c | 6 | ||||
-rw-r--r-- | tests/scanner/drawable.h | 2 |
4 files changed, 28 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2008-08-21 Colin Walters <walters@verbum.org> + * tests/scanner/drawable-expected.gir, + * tests/scanner/drawable.c, + * tests/scanner/drawable.h: + Add a method. + +2008-08-21 Colin Walters <walters@verbum.org> + * giscanner/glibtransformer.py: Compute prefix by searching through the symbol for bits rather than going directly from ctype; this fixes diff --git a/tests/scanner/drawable-expected.gir b/tests/scanner/drawable-expected.gir index 0d91d72a..0bf5f9ad 100644 --- a/tests/scanner/drawable-expected.gir +++ b/tests/scanner/drawable-expected.gir @@ -8,6 +8,19 @@ parent="GObject.Object" glib:type-name="TestDrawable" glib:get-type="test_drawable_get_type"> + <method name="do_foo" c:identifier="test_drawable_do_foo"> + <return-value> + <type name="none" c:type="void"/> + </return-value> + <parameters> + <parameter name="drawable"> + <type name="Drawable" c:type="TestDrawable*"/> + </parameter> + <parameter name="x"> + <type name="int" c:type="int"/> + </parameter> + </parameters> + </method> </class> <record name="DrawableClass" c:type="TestDrawableClass"> <field name="parent_class"> diff --git a/tests/scanner/drawable.c b/tests/scanner/drawable.c index d2ca8ac6..7dbd5fc1 100644 --- a/tests/scanner/drawable.c +++ b/tests/scanner/drawable.c @@ -13,3 +13,9 @@ test_drawable_init (TestDrawable *drawable) { } + +void +test_drawable_do_foo (TestDrawable *drawable, int x) +{ + +} diff --git a/tests/scanner/drawable.h b/tests/scanner/drawable.h index a3908c12..4c4eca33 100644 --- a/tests/scanner/drawable.h +++ b/tests/scanner/drawable.h @@ -18,6 +18,8 @@ struct _TestDrawableClass GType test_drawable_get_type (void) G_GNUC_CONST; +void test_drawable_do_foo (TestDrawable *drawable, int x); + struct _TestPixmapObjectClass { TestDrawableClass parent_class; |