summaryrefslogtreecommitdiff
path: root/tests/repository/gitestrepo.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-10-26 11:47:00 -0400
committerColin Walters <walters@verbum.org>2010-11-12 15:35:44 -0500
commit8bb515bb3abbc2576fed04f6bf0155dab9f016f4 (patch)
treeb446ea74c6e5e96ca2f073b3ee3f964697af12dd /tests/repository/gitestrepo.c
parenta2c6793bd1873a7af3c19f88405e97e334a6872f (diff)
downloadgobject-introspection-8bb515bb3abbc2576fed04f6bf0155dab9f016f4.tar.gz
Add g_object_info_find_signal
This matches g_object_info_find_method, and allows us to add indexing later. https://bugzilla.gnome.org/show_bug.cgi?id=633204
Diffstat (limited to 'tests/repository/gitestrepo.c')
-rw-r--r--tests/repository/gitestrepo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/repository/gitestrepo.c b/tests/repository/gitestrepo.c
index 67af4ff1..25b590f3 100644
--- a/tests/repository/gitestrepo.c
+++ b/tests/repository/gitestrepo.c
@@ -41,6 +41,7 @@ main(int argc, char **argv)
GITypelib *ret;
GError *error = NULL;
GIBaseInfo *info;
+ GIBaseInfo *siginfo;
GType gtype;
char *girdir;
@@ -73,6 +74,12 @@ main(int argc, char **argv)
info = g_irepository_find_by_name (repo, "Gio", "ThisDoesNotExist");
g_assert (info == NULL);
+ info = g_irepository_find_by_name (repo, "Gio", "FileMonitor");
+ g_assert (info != NULL);
+ siginfo = g_object_info_find_signal ((GIObjectInfo*) info, "changed");
+ g_assert (siginfo != NULL);
+ g_base_info_unref (siginfo);
+
/* vfunc tests */
{
GIVFuncInfo *vfunc;