java-gobject-introspection r111 - trunk/src/org/gnome/gir/repository



Author: walters
Date: Sat Oct 25 15:50:56 2008
New Revision: 111
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=111&view=rev

Log:
Adjust for bug 557791

Modified:
   trunk/src/org/gnome/gir/repository/GIntrospectionAPI.java
   trunk/src/org/gnome/gir/repository/Repository.java

Modified: trunk/src/org/gnome/gir/repository/GIntrospectionAPI.java
==============================================================================
--- trunk/src/org/gnome/gir/repository/GIntrospectionAPI.java	(original)
+++ trunk/src/org/gnome/gir/repository/GIntrospectionAPI.java	Sat Oct 25 15:50:56 2008
@@ -48,7 +48,7 @@
 	void g_irepository_prepend_search_path(String path);
 	int g_irepository_get_n_infos(Repository repo, String namespace);
 	boolean g_irepository_is_registered (Repository repository, String namespace);
-	boolean g_irepository_require(Repository repo, String namespace, String version, int flags, PointerByReference error);
+	Pointer g_irepository_require(Repository repo, String namespace, String version, int flags, PointerByReference error);
 	BaseInfo g_irepository_find_by_name(Repository repo, String namespace, String name);
 	BaseInfo g_irepository_find_by_gtype(Repository repository, NativeLong g_type);	
 	String[] g_irepository_get_namespaces(Repository repo);

Modified: trunk/src/org/gnome/gir/repository/Repository.java
==============================================================================
--- trunk/src/org/gnome/gir/repository/Repository.java	(original)
+++ trunk/src/org/gnome/gir/repository/Repository.java	Sat Oct 25 15:50:56 2008
@@ -24,7 +24,7 @@
 		
 	public void require(String namespace, String version) throws GErrorException {
 		PointerByReference error = new PointerByReference(null);
-		if (!GIntrospectionAPI.gi.g_irepository_require(this, namespace, version, 0, error)) {
+		if (GIntrospectionAPI.gi.g_irepository_require(this, namespace, version, 0, error) == null) {
 			throw new GErrorException(new GErrorStruct(error.getValue()));
 		}
 	}



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