summaryrefslogtreecommitdiffstats
path: root/tests/libtestgi.c
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-11-28 11:03:51 +0000
committerTomeu Vizoso <tomeu@sugarlabs.org>2009-11-28 11:04:21 +0000
commit96f6c638709636d7e2ddf560b877879691da3314 (patch)
tree4c10dfff0d5099cfc02201a9c5f40d8f60aec5fd /tests/libtestgi.c
parent076ba3156c13375a75983cef7a409c8c8afea119 (diff)
downloadpygi-96f6c638709636d7e2ddf560b877879691da3314.tar.gz
pygi-96f6c638709636d7e2ddf560b877879691da3314.tar.xz
pygi-96f6c638709636d7e2ddf560b877879691da3314.zip
A few tests about interfaces
https://bugzilla.gnome.org/show_bug.cgi?id=601181
Diffstat (limited to 'tests/libtestgi.c')
-rw-r--r--tests/libtestgi.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/libtestgi.c b/tests/libtestgi.c
index 87f95ae..613c0d9 100644
--- a/tests/libtestgi.c
+++ b/tests/libtestgi.c
@@ -3394,6 +3394,29 @@ test_gi_sub_object_overwritten_method (TestGISubObject *object)
g_assert(TESTGI_OBJECT(object)->int_ == 0);
}
+/* Interfaces */
+
+static void
+test_gi_interface_class_init(void *g_iface)
+{
+}
+
+GType
+test_gi_interface_get_type(void)
+{
+ static GType type = 0;
+ if (type == 0) {
+ type = g_type_register_static_simple (G_TYPE_INTERFACE,
+ "TestGIInterface",
+ sizeof (TestGIInterfaceIface),
+ (GClassInitFunc) test_gi_interface_class_init,
+ 0, NULL, 0);
+ }
+
+ return type;
+}
+
+
/**
* test_gi_int_out_out:
* int0: (out):