java-gobject-introspection r133 - trunk/src/org/gnome/gir/compiler



Author: walters
Date: Fri Nov 28 00:48:15 2008
New Revision: 133
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=133&view=rev

Log:
Actually check for GLib.FreeFunc

We were getting cut off by the previous test.

Modified:
   trunk/src/org/gnome/gir/compiler/TypeMap.java

Modified: trunk/src/org/gnome/gir/compiler/TypeMap.java
==============================================================================
--- trunk/src/org/gnome/gir/compiler/TypeMap.java	(original)
+++ trunk/src/org/gnome/gir/compiler/TypeMap.java	Fri Nov 28 00:48:15 2008
@@ -284,10 +284,10 @@
 			return false;
 		BaseInfo iface = type.getInterface();
 		String ns = iface.getNamespace();
+		if (ns.equals("GLib") && iface.getName().equals("FreeFunc"))
+			return true;		
 		if (ns.equals("GLib") || ns.equals("Gtk"))
 			return iface.getName().equals("DestroyNotify");
-		if (ns.equals("GLib") && iface.getName().equals("FreeFunc"))
-			return true;
 		return false;
 	}
 



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