gobject-introspection r817 - trunk/tests/repository



Author: tko
Date: Mon Oct 27 10:02:01 2008
New Revision: 817
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=817&view=rev

Log:
g_irepository_require() returns GTypelib now, fix warning

Modified:
   trunk/tests/repository/gitestthrows.c

Modified: trunk/tests/repository/gitestthrows.c
==============================================================================
--- trunk/tests/repository/gitestthrows.c	(original)
+++ trunk/tests/repository/gitestthrows.c	Mon Oct 27 10:02:01 2008
@@ -9,7 +9,7 @@
 main(int argc, char **argv)
 {
   GIRepository *repo;
-  gboolean ret;
+  GTypelib *ret;
   GIBaseInfo *info;
   char *girdir;
   GArgument in_arg[1];
@@ -27,7 +27,7 @@
 
   error = NULL;
   ret = g_irepository_require (repo, "GLib", NULL, 0, &error);
-  g_assert (ret);
+  g_assert (ret != NULL);
   g_assert (error == NULL);
 
   info = g_irepository_find_by_name (repo, "GLib", "file_read_link");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]