summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-08-18 19:38:05 -0400
committerColin Walters <walters@verbum.org>2010-08-31 16:05:56 -0400
commitf58c9cd835c6e5077496ea4abf18ecd8907c3288 (patch)
treeb9270b891cb9223a8cc12add7fb030e3f07e2a65 /tests
parent456a79cb1d3fee93a3e6e1af9ef2948b0866bdd3 (diff)
downloadgobject-introspection-f58c9cd835c6e5077496ea4abf18ecd8907c3288.tar.gz
tests: Fix namespacing for BarApp (should be just Bar)
Diffstat (limited to 'tests')
-rw-r--r--tests/offsets/Makefile.am15
-rwxr-xr-xtests/offsets/gen-gitestoffsets2
-rw-r--r--tests/offsets/offsets.h38
-rw-r--r--tests/scanner/Annotation-1.0-expected.gir (renamed from tests/scanner/annotation-1.0-expected.gir)6
-rw-r--r--tests/scanner/Bar-1.0-expected.gir (renamed from tests/scanner/BarApp-1.0-expected.gir)6
-rw-r--r--tests/scanner/Foo-1.0-expected.gir (renamed from tests/scanner/foo-1.0-expected.gir)20
-rw-r--r--tests/scanner/Makefile.am73
-rw-r--r--tests/scanner/TestInherit-1.0-expected.gir (renamed from tests/scanner/drawable-1.0-expected.gir)37
-rw-r--r--tests/scanner/Utility-1.0-expected.gir (renamed from tests/scanner/utility-1.0-expected.gir)4
-rw-r--r--tests/scanner/barapp.c4
-rw-r--r--tests/scanner/barapp.h4
-rw-r--r--tests/scanner/drawable.c14
-rw-r--r--tests/scanner/drawable.h28
13 files changed, 126 insertions, 125 deletions
diff --git a/tests/offsets/Makefile.am b/tests/offsets/Makefile.am
index c778ae3d..c2838282 100644
--- a/tests/offsets/Makefile.am
+++ b/tests/offsets/Makefile.am
@@ -20,12 +20,13 @@ liboffsets_la_CPPFLAGS = $(GIREPO_CFLAGS)
# dummy rpath to get built dynamically (huh?)
liboffsets_la_LDFLAGS = -avoid-version -rpath $(libdir)
-offsets-1.0.gir: liboffsets.la offsets.h
-offsets_1_0_gir_INCLUDES = GObject-2.0
-offsets_1_0_gir_LIBS = liboffsets.la
-offsets_1_0_gir_PACKAGES = gobject-2.0
-offsets_1_0_gir_FILES = $(srcdir)/offsets.h $(srcdir)/offsets.c
-INTROSPECTION_GIRS += offsets-1.0.gir
+Offsets-1.0.gir: liboffsets.la offsets.h
+Offsets_1_0_gir_INCLUDES = GObject-2.0
+Offsets_1_0_gir_LIBS = liboffsets.la
+Offsets_1_0_gir_PACKAGES = gobject-2.0
+Offsets_1_0_gir_FILES = $(srcdir)/offsets.h $(srcdir)/offsets.c
+Offsets_1_0_gir_SCANNERFLAGS = --warn-all --warn-error
+INTROSPECTION_GIRS += Offsets-1.0.gir
CLEANFILES += offsets-1.0.gir offsets-1.0.typelib
@@ -46,7 +47,7 @@ CLEANFILES += gitestoffsets.c
############################################################
-check-local: offsets-1.0.typelib
+check-local: Offsets-1.0.typelib
GI_TYPELIB_PATH=:$(top_builddir)/gir ./gitestoffsets$(EXEEXT) offsets.compiled offsets.introspected
diff -u offsets.compiled offsets.introspected
diff --git a/tests/offsets/gen-gitestoffsets b/tests/offsets/gen-gitestoffsets
index 58139fc2..60efa439 100755
--- a/tests/offsets/gen-gitestoffsets
+++ b/tests/offsets/gen-gitestoffsets
@@ -107,7 +107,7 @@ output({}, r'''
|#include "offsets.h"
|
|static GIRepository *repository;
-|static const char *namespace = "offsets";
+|static const char *namespace = "Offsets";
|static const char *version = "1.0";
|
|static void
diff --git a/tests/offsets/offsets.h b/tests/offsets/offsets.h
index 3f887a8e..1985f39a 100644
--- a/tests/offsets/offsets.h
+++ b/tests/offsets/offsets.h
@@ -33,28 +33,28 @@ struct _OffsetsBasic {
};
typedef enum {
- ENUM_1 = 1 /* compiler could use int8, uint8, int16, uint16, int32, uint32 */
-} Enum1;
+ OFFSETS_ENUM_1 = 1 /* compiler could use int8, uint8, int16, uint16, int32, uint32 */
+} OffsetsEnum1;
typedef enum {
- ENUM_2 = 128 /* compiler could use uint8, int16, uint16, int32, uint32 */
-} Enum2;
+ OFFSETS_ENUM_2 = 128 /* compiler could use uint8, int16, uint16, int32, uint32 */
+} OffsetsEnum2;
typedef enum {
- ENUM_3 = 257 /* compiler could use int16, uint16, int32, uint32 */
-} Enum3;
+ OFFSETS_ENUM_3 = 257 /* compiler could use int16, uint16, int32, uint32 */
+} OffsetsEnum3;
typedef enum {
- ENUM_4 = G_MAXSHORT + 1 /* compiler could use uint16, int32, uint32 */
-} Enum4;
+ OFFSETS_ENUM_4 = G_MAXSHORT + 1 /* compiler could use uint16, int32, uint32 */
+} OffsetsEnum4;
typedef enum {
- ENUM_5 = G_MAXUSHORT + 1 /* compiler could use int32, uint32 */
-} Enum5;
+ OFFSETS_ENUM_5 = G_MAXUSHORT + 1 /* compiler could use int32, uint32 */
+} OffsetsEnum5;
typedef enum {
- ENUM_6 = ((guint)G_MAXINT) + 1 /* compiler could use uint32 */
-} Enum6;
+ OFFSETS_ENUM_6 = ((guint)G_MAXINT) + 1 /* compiler could use uint32 */
+} OffsetsEnum6;
/* Test that we get the width of enum fields right. The char after
* each field will have aligment 1 (almost certainly) so should
@@ -63,17 +63,17 @@ typedef enum {
typedef struct _OffsetsEnum OffsetsEnum;
struct _OffsetsEnum {
- Enum1 enum1;
+ OffsetsEnum1 enum1;
char dummy1;
- Enum2 enum2;
+ OffsetsEnum2 enum2;
char dummy2;
- Enum3 enum3;
+ OffsetsEnum3 enum3;
char dummy3;
- Enum4 enum4;
+ OffsetsEnum4 enum4;
char dummy4;
- Enum5 enum5;
+ OffsetsEnum5 enum5;
char dummy5;
- Enum6 enum6;
+ OffsetsEnum6 enum6;
char dummy6;
};
@@ -115,7 +115,7 @@ struct _OffsetsArray
gint some_ints[2];
gint8 some_int8s[3];
gdouble some_doubles[4];
- Enum1 some_enum[2];
+ OffsetsEnum1 some_enum[2];
gpointer some_ptrs[5];
};
diff --git a/tests/scanner/annotation-1.0-expected.gir b/tests/scanner/Annotation-1.0-expected.gir
index 38506689..9401ca2c 100644
--- a/tests/scanner/annotation-1.0-expected.gir
+++ b/tests/scanner/Annotation-1.0-expected.gir
@@ -8,12 +8,12 @@ and/or use gtk-doc annotations. -->
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
- <include name="utility" version="1.0"/>
+ <include name="Utility" version="1.0"/>
<package name="gobject-2.0"/>
- <namespace name="annotation"
+ <namespace name="Annotation"
version="1.0"
shared-library="libannotation.so"
- c:prefix="annotation">
+ c:prefix="Annotation">
<callback name="Callback" c:type="AnnotationCallback">
<doc xml:whitespace="preserve">This is a callback.</doc>
<return-value transfer-ownership="none">
diff --git a/tests/scanner/BarApp-1.0-expected.gir b/tests/scanner/Bar-1.0-expected.gir
index ca9b7ee3..0f665a63 100644
--- a/tests/scanner/BarApp-1.0-expected.gir
+++ b/tests/scanner/Bar-1.0-expected.gir
@@ -9,7 +9,7 @@ and/or use gtk-doc annotations. -->
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
<package name="gobject-2.0"/>
- <namespace name="BarApp" version="1.0" shared-library="" c:prefix="Bar">
+ <namespace name="Bar" version="1.0" shared-library="" c:prefix="Bar">
<class name="Baz"
c:type="BarBaz"
parent="GObject.Object"
@@ -27,12 +27,12 @@ and/or use gtk-doc annotations. -->
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
- <function name="func" c:identifier="barapp_func">
+ <function name="app_func" c:identifier="bar_app_func">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</function>
- <function name="func2" c:identifier="barapp_func2">
+ <function name="app_func2" c:identifier="bar_app_func2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
diff --git a/tests/scanner/foo-1.0-expected.gir b/tests/scanner/Foo-1.0-expected.gir
index 80d11e6b..4007d96a 100644
--- a/tests/scanner/foo-1.0-expected.gir
+++ b/tests/scanner/Foo-1.0-expected.gir
@@ -9,13 +9,13 @@ and/or use gtk-doc annotations. -->
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
- <include name="utility" version="1.0"/>
+ <include name="Utility" version="1.0"/>
<package name="gobject-2.0"/>
<c:include name="foo.h"/>
- <namespace name="foo"
+ <namespace name="Foo"
version="1.0"
shared-library="libfoo.so"
- c:prefix="foo">
+ c:prefix="Foo">
<alias name="List" target="GLib.SList" c:type="FooList"/>
<alias name="ObjectCookie" target="any" c:type="FooObjectCookie"/>
<alias name="XEvent" target="none" c:type="FooXEvent"/>
@@ -347,7 +347,7 @@ uses a C sugar return type.</doc>
</virtual-method>
<method name="external_type" c:identifier="foo_object_external_type">
<return-value transfer-ownership="full">
- <type name="utility.Object" c:type="UtilityObject*"/>
+ <type name="Utility.Object" c:type="UtilityObject*"/>
</return-value>
</method>
<method name="various" c:identifier="foo_object_various">
@@ -425,7 +425,7 @@ uses a C sugar return type.</doc>
</return-value>
<parameters>
<parameter name="glyph" transfer-ownership="none">
- <type name="utility.Glyph" c:type="UtilityGlyph"/>
+ <type name="Utility.Glyph" c:type="UtilityGlyph"/>
</parameter>
</parameters>
</method>
@@ -717,7 +717,7 @@ exposed to language bindings.</doc>
</union>
<record name="UtilityStruct" c:type="FooUtilityStruct">
<field name="bar" writable="1">
- <type name="utility.Struct" c:type="UtilityStruct"/>
+ <type name="Utility.Struct" c:type="UtilityStruct"/>
</field>
</record>
<callback name="VarargsCallback"
@@ -809,16 +809,16 @@ exposed to language bindings.</doc>
</return-value>
<parameters>
<parameter name="object" transfer-ownership="none">
- <type name="utility.Object" c:type="UtilityObject*"/>
+ <type name="Utility.Object" c:type="UtilityObject*"/>
</parameter>
<parameter name="e" transfer-ownership="none">
- <type name="utility.EnumType" c:type="UtilityEnumType"/>
+ <type name="Utility.EnumType" c:type="UtilityEnumType"/>
</parameter>
<parameter name="f" transfer-ownership="none">
- <type name="utility.FlagType" c:type="UtilityFlagType"/>
+ <type name="Utility.FlagType" c:type="UtilityFlagType"/>
</parameter>
<parameter name="s" transfer-ownership="none">
- <type name="utility.Struct" c:type="UtilityStruct"/>
+ <type name="Utility.Struct" c:type="UtilityStruct"/>
</parameter>
</parameters>
</function>
diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am
index 0e111208..1b5dc7f5 100644
--- a/tests/scanner/Makefile.am
+++ b/tests/scanner/Makefile.am
@@ -7,7 +7,7 @@ INTROSPECTION_SCANNER_ARGS += --warn-all --warn-error
# it does not work with noinst_LTLIBRARIES
testlib_LTLIBRARIES = \
libannotation.la \
- libdrawable.la \
+ libtestinherit.la \
libfoo.la \
libutility.la \
libregress.la \
@@ -21,7 +21,7 @@ AM_LDFLAGS = -avoid-version
LIBS = $(GOBJECT_LIBS) $(GTHREAD_LIBS)
libannotation_la_SOURCES = $(srcdir)/annotation.c $(srcdir)/annotation.h
-libdrawable_la_SOURCES = $(srcdir)/drawable.c $(srcdir)/drawable.h
+libtestinherit_la_SOURCES = $(srcdir)/drawable.c $(srcdir)/drawable.h
libfoo_la_SOURCES = $(srcdir)/foo.c $(srcdir)/foo.h
libutility_la_SOURCES = $(srcdir)/utility.c $(srcdir)/utility.h
libgtkfrob_la_SOURCES = $(srcdir)/gtkfrob.c $(srcdir)/gtkfrob.h
@@ -56,34 +56,34 @@ Regress_1_0_gir_INCLUDES = cairo-1.0 Gio-2.0
Regress_1_0_gir_FILES = $(libregress_la_SOURCES)
GIRS += Regress-1.0.gir
-annotation-1.0.gir: utility-1.0.gir libannotation.la
-annotation_1_0_gir_PACKAGES = gobject-2.0
-annotation_1_0_gir_LIBS = libannotation.la
-annotation_1_0_gir_INCLUDES = GObject-2.0 utility-1.0
-annotation_1_0_gir_FILES = $(libannotation_la_SOURCES)
-GIRS += annotation-1.0.gir
-
-drawable-1.0.gir: utility-1.0.gir libdrawable.la
-drawable_1_0_gir_PACKAGES = gobject-2.0
-drawable_1_0_gir_LIBS = libdrawable.la
-drawable_1_0_gir_INCLUDES = GObject-2.0 utility-1.0
-drawable_1_0_gir_FILES = $(libdrawable_la_SOURCES)
-GIRS += drawable-1.0.gir
-
-foo-1.0.gir: utility-1.0.gir libfoo.la
-foo_1_0_gir_PACKAGES = gobject-2.0
-foo_1_0_gir_LIBS = libfoo.la
-foo_1_0_gir_INCLUDES = GObject-2.0 Gio-2.0 utility-1.0
-foo_1_0_gir_FILES = $(srcdir)/foo.h $(srcdir)/foo.c
-foo_1_0_gir_SCANNERFLAGS = --c-include="foo.h"
-GIRS += foo-1.0.gir
-
-utility-1.0.gir: libutility.la
-utility_1_0_gir_PACKAGES = gobject-2.0
-utility_1_0_gir_LIBS = libutility.la
-utility_1_0_gir_INCLUDES = GObject-2.0
-utility_1_0_gir_FILES = $(libutility_la_SOURCES)
-GIRS += utility-1.0.gir
+Annotation-1.0.gir: Utility-1.0.gir libannotation.la
+Annotation_1_0_gir_PACKAGES = gobject-2.0
+Annotation_1_0_gir_LIBS = libannotation.la
+Annotation_1_0_gir_INCLUDES = GObject-2.0 Utility-1.0
+Annotation_1_0_gir_FILES = $(libannotation_la_SOURCES)
+GIRS += Annotation-1.0.gir
+
+TestInherit-1.0.gir: Utility-1.0.gir libtestinherit.la
+TestInherit_1_0_gir_PACKAGES = gobject-2.0
+TestInherit_1_0_gir_LIBS = libtestinherit.la
+TestInherit_1_0_gir_INCLUDES = GObject-2.0 Utility-1.0
+TestInherit_1_0_gir_FILES = $(libtestinherit_la_SOURCES)
+GIRS += TestInherit-1.0.gir
+
+Foo-1.0.gir: Utility-1.0.gir libfoo.la
+Foo_1_0_gir_PACKAGES = gobject-2.0
+Foo_1_0_gir_LIBS = libfoo.la
+Foo_1_0_gir_INCLUDES = GObject-2.0 Gio-2.0 Utility-1.0
+Foo_1_0_gir_FILES = $(srcdir)/foo.h $(srcdir)/foo.c
+Foo_1_0_gir_SCANNERFLAGS = --c-include="foo.h"
+GIRS += Foo-1.0.gir
+
+Utility-1.0.gir: libutility.la
+Utility_1_0_gir_PACKAGES = gobject-2.0
+Utility_1_0_gir_LIBS = libutility.la
+Utility_1_0_gir_INCLUDES = GObject-2.0
+Utility_1_0_gir_FILES = $(libutility_la_SOURCES)
+GIRS += Utility-1.0.gir
# This one tests different --namespace and --strip-prefix
GtkFrob-1.0.gir: libgtkfrob.la
@@ -100,13 +100,12 @@ barapp_SOURCES = $(srcdir)/barapp.c $(srcdir)/barapp.h
barapp_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la
barapp_LDFLAGS = -export-dynamic
-BarApp-1.0.gir: barapp
-BarApp_1_0_gir_PACKAGES = gobject-2.0
-BarApp_1_0_gir_PROGRAM = ./barapp
-BarApp_1_0_gir_INCLUDES = GObject-2.0
-BarApp_1_0_gir_FILES = $(barapp_SOURCES)
-BarApp_1_0_gir_SCANNERFLAGS = --strip-prefix=Bar
-GIRS += BarApp-1.0.gir
+Bar-1.0.gir: barapp
+Bar_1_0_gir_PACKAGES = gobject-2.0
+Bar_1_0_gir_PROGRAM = ./barapp
+Bar_1_0_gir_INCLUDES = GObject-2.0
+Bar_1_0_gir_FILES = $(barapp_SOURCES)
+GIRS += Bar-1.0.gir
pre-check:
@if test "$(top_builddir)" != "$(top_srcdir)"; then \
diff --git a/tests/scanner/drawable-1.0-expected.gir b/tests/scanner/TestInherit-1.0-expected.gir
index 9ed70605..3c82fb33 100644
--- a/tests/scanner/drawable-1.0-expected.gir
+++ b/tests/scanner/TestInherit-1.0-expected.gir
@@ -8,20 +8,20 @@ and/or use gtk-doc annotations. -->
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
- <include name="utility" version="1.0"/>
+ <include name="Utility" version="1.0"/>
<package name="gobject-2.0"/>
- <namespace name="drawable"
+ <namespace name="TestInherit"
version="1.0"
- shared-library="libdrawable.so"
- c:prefix="drawable">
- <class name="TestDrawable"
- c:type="TestDrawable"
+ shared-library="libtestinherit.so"
+ c:prefix="TestInherit">
+ <class name="Drawable"
+ c:type="TestInheritDrawable"
parent="GObject.Object"
abstract="1"
- glib:type-name="TestDrawable"
- glib:get-type="test_drawable_get_type"
- glib:type-struct="TestDrawableClass">
- <method name="do_foo" c:identifier="test_drawable_do_foo">
+ glib:type-name="TestInheritDrawable"
+ glib:get-type="test_inherit_drawable_get_type"
+ glib:type-struct="DrawableClass">
+ <method name="do_foo" c:identifier="test_inherit_drawable_do_foo">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -31,7 +31,8 @@ and/or use gtk-doc annotations. -->
</parameter>
</parameters>
</method>
- <method name="get_origin" c:identifier="test_drawable_get_origin">
+ <method name="get_origin"
+ c:identifier="test_inherit_drawable_get_origin">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -50,7 +51,7 @@ and/or use gtk-doc annotations. -->
</parameter>
</parameters>
</method>
- <method name="get_size" c:identifier="test_drawable_get_size">
+ <method name="get_size" c:identifier="test_inherit_drawable_get_size">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -70,7 +71,7 @@ and/or use gtk-doc annotations. -->
</parameters>
</method>
<method name="do_foo_maybe_throw"
- c:identifier="test_drawable_do_foo_maybe_throw"
+ c:identifier="test_inherit_drawable_do_foo_maybe_throw"
throws="1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
@@ -85,16 +86,16 @@ and/or use gtk-doc annotations. -->
<type name="GObject.Object" c:type="GObject"/>
</field>
</class>
- <record name="TestDrawableClass"
- c:type="TestDrawableClass"
- glib:is-gtype-struct-for="TestDrawable">
+ <record name="DrawableClass"
+ c:type="TestInheritDrawableClass"
+ glib:is-gtype-struct-for="Drawable">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
</record>
- <record name="TestPixmapObjectClass" c:type="_TestPixmapObjectClass">
+ <record name="PixmapObjectClass" c:type="_TestInheritPixmapObjectClass">
<field name="parent_class" writable="1">
- <type name="TestDrawableClass" c:type="TestDrawableClass"/>
+ <type name="DrawableClass" c:type="TestInheritDrawableClass"/>
</field>
</record>
</namespace>
diff --git a/tests/scanner/utility-1.0-expected.gir b/tests/scanner/Utility-1.0-expected.gir
index 5f8f96c7..d7e50ed0 100644
--- a/tests/scanner/utility-1.0-expected.gir
+++ b/tests/scanner/Utility-1.0-expected.gir
@@ -9,10 +9,10 @@ and/or use gtk-doc annotations. -->
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
<package name="gobject-2.0"/>
- <namespace name="utility"
+ <namespace name="Utility"
version="1.0"
shared-library="libutility.so"
- c:prefix="utility">
+ c:prefix="Utility">
<alias name="Glyph" target="uint32" c:type="UtilityGlyph"/>
<record name="Buffer" c:type="UtilityBuffer">
<field name="data" writable="1">
diff --git a/tests/scanner/barapp.c b/tests/scanner/barapp.c
index f2b92546..d3369753 100644
--- a/tests/scanner/barapp.c
+++ b/tests/scanner/barapp.c
@@ -16,12 +16,12 @@ bar_baz_init (BarBaz *object)
}
void
-barapp_func (void)
+bar_app_func (void)
{
}
void
-barapp_func2 (int x, double y)
+bar_app_func2 (int x, double y)
{
}
diff --git a/tests/scanner/barapp.h b/tests/scanner/barapp.h
index 6e09b8aa..ff8037de 100644
--- a/tests/scanner/barapp.h
+++ b/tests/scanner/barapp.h
@@ -20,5 +20,5 @@ struct BarBazClass
GType bar_baz_get_type (void) G_GNUC_CONST;
-void barapp_func (void);
-void barapp_func2 (int x, double y);
+void bar_app_func (void);
+void bar_app_func2 (int x, double y);
diff --git a/tests/scanner/drawable.c b/tests/scanner/drawable.c
index 7101d180..0250fc05 100644
--- a/tests/scanner/drawable.c
+++ b/tests/scanner/drawable.c
@@ -1,41 +1,41 @@
#include "drawable.h"
-G_DEFINE_ABSTRACT_TYPE (TestDrawable, test_drawable, G_TYPE_OBJECT);
+G_DEFINE_ABSTRACT_TYPE (TestInheritDrawable, test_inherit_drawable, G_TYPE_OBJECT);
static void
-test_drawable_class_init (TestDrawableClass *klass)
+test_inherit_drawable_class_init (TestInheritDrawableClass *klass)
{
}
static void
-test_drawable_init (TestDrawable *drawable)
+test_inherit_drawable_init (TestInheritDrawable *drawable)
{
}
void
-test_drawable_do_foo (TestDrawable *drawable, int x)
+test_inherit_drawable_do_foo (TestInheritDrawable *drawable, int x)
{
}
void
-test_drawable_get_origin (TestDrawable *drawable, int *x, int *y)
+test_inherit_drawable_get_origin (TestInheritDrawable *drawable, int *x, int *y)
{
*x = 0;
*y = 0;
}
void
-test_drawable_get_size (TestDrawable *drawable, guint *width, guint *height)
+test_inherit_drawable_get_size (TestInheritDrawable *drawable, guint *width, guint *height)
{
*width = 42;
*height = 42;
}
void
-test_drawable_do_foo_maybe_throw (TestDrawable *drawable, int x, GError **error)
+test_inherit_drawable_do_foo_maybe_throw (TestInheritDrawable *drawable, int x, GError **error)
{
if (x != 42)
g_set_error(error, 0, 12, "The answer should be 42!");
diff --git a/tests/scanner/drawable.h b/tests/scanner/drawable.h
index 98a70105..ccc2a0ef 100644
--- a/tests/scanner/drawable.h
+++ b/tests/scanner/drawable.h
@@ -1,31 +1,31 @@
-#ifndef __TEST_DRAWABLE_H__
-#define __TEST_DRAWABLE_H__
+#ifndef __TEST_INHERIT_DRAWABLE_H__
+#define __TEST_INHERIT_DRAWABLE_H__
#include <glib-object.h>
-typedef struct _TestDrawable TestDrawable;
-typedef struct _TestDrawableClass TestDrawableClass;
+typedef struct _TestInheritDrawable TestInheritDrawable;
+typedef struct _TestInheritDrawableClass TestInheritDrawableClass;
-struct _TestDrawable
+struct _TestInheritDrawable
{
GObject parent_instance;
};
-struct _TestDrawableClass
+struct _TestInheritDrawableClass
{
GObjectClass parent_class;
};
-GType test_drawable_get_type (void) G_GNUC_CONST;
+GType test_inherit_drawable_get_type (void) G_GNUC_CONST;
-void test_drawable_do_foo (TestDrawable *drawable, int x);
-void test_drawable_get_origin (TestDrawable *drawable, int *x, int *y);
-void test_drawable_get_size (TestDrawable *drawable, guint *width, guint *height);
-void test_drawable_do_foo_maybe_throw (TestDrawable *drawable, int x, GError **error);
+void test_inherit_drawable_do_foo (TestInheritDrawable *drawable, int x);
+void test_inherit_drawable_get_origin (TestInheritDrawable *drawable, int *x, int *y);
+void test_inherit_drawable_get_size (TestInheritDrawable *drawable, guint *width, guint *height);
+void test_inherit_drawable_do_foo_maybe_throw (TestInheritDrawable *drawable, int x, GError **error);
-struct _TestPixmapObjectClass
+struct _TestInheritPixmapObjectClass
{
- TestDrawableClass parent_class;
+ TestInheritDrawableClass parent_class;
};
-#endif /* __TEST_DRAWABLE_H__ */
+#endif /* __TEST_INHERIT_DRAWABLE_H__ */