java-gobject-introspection r98 - trunk/stub-examples



Author: walters
Date: Tue Oct 21 02:49:41 2008
New Revision: 98
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=98&view=rev

Log:
Add example of @Return


Modified:
   trunk/stub-examples/Test.java

Modified: trunk/stub-examples/Test.java
==============================================================================
--- trunk/stub-examples/Test.java	(original)
+++ trunk/stub-examples/Test.java	Tue Oct 21 02:49:41 2008
@@ -8,8 +8,10 @@
 import org.gnome.gir.gobject.GObject;
 import org.gnome.gir.gobject.GType;
 import org.gnome.gir.gobject.GTypeMapper;
+import org.gnome.gir.gobject.annotation.Return;
 import org.gnome.gir.repository.Direction;
 import org.gnome.gir.repository.Repository;
+import org.gnome.gir.repository.Transfer;
 
 import com.sun.jna.Callback;
 import com.sun.jna.Function;
@@ -151,6 +153,11 @@
 		f.invoke(Void.class, args, Internals.invocationOptions);
 	}	
 	
+	@Return(transfer=Transfer.NOTHING)
+	public static GObject getStage() {
+		return null;
+	}
+	
 	public void foo(Pointer widget, Structure event) {
 		Function f = Internals.library.getFunction("gtk_propagate_event");
 		Object[] args = new Object[] { this, widget, event };



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