java-gobject-introspection-examples r12 - trunk/src/org/verbum
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: java-gobject-introspection-examples r12 - trunk/src/org/verbum
- Date: Sat, 29 Nov 2008 19:16:20 +0000 (UTC)
Author: walters
Date: Sat Nov 29 19:16:20 2008
New Revision: 12
URL: http://svn.gnome.org/viewvc/java-gobject-introspection-examples?rev=12&view=rev
Log:
List testing bits
Modified:
trunk/src/org/verbum/GtkTest.java
trunk/src/org/verbum/RecentTest.java
Modified: trunk/src/org/verbum/GtkTest.java
==============================================================================
--- trunk/src/org/verbum/GtkTest.java (original)
+++ trunk/src/org/verbum/GtkTest.java Sat Nov 29 19:16:20 2008
@@ -64,6 +64,10 @@
}
});
+ for (Widget wid : box.getChildren()) {
+ System.err.println("CHILD: " + wid.toString());
+ }
+
GtkGlobals.main();
}
}
Modified: trunk/src/org/verbum/RecentTest.java
==============================================================================
--- trunk/src/org/verbum/RecentTest.java (original)
+++ trunk/src/org/verbum/RecentTest.java Sat Nov 29 19:16:20 2008
@@ -1,25 +1,19 @@
package org.verbum;
-import java.util.List;
-
import org.gnome.gir.dynamic.Gtk.GtkGlobals;
-import org.gnome.gir.dynamic.Gtk.RecentInfo;
import org.gnome.gir.dynamic.Gtk.RecentManager;
import org.gnome.gir.gobject.GErrorException;
-import com.sun.jna.Pointer;
-
public class RecentTest {
public static void main(String[] args) throws GErrorException {
GtkGlobals.initCheck(null, null);
RecentManager mgr = RecentManager.getDefault();
- List<Pointer> recent = mgr.getItems().copy();
- Pointer first = recent.get(0);
- RecentInfo info = new RecentInfo();
- info.setPointer(first);
- System.out.printf("uri=%s added=%s%n", info.getUri(), info.getAdded());
-
+ /*
+ for (RecentInfo info : mgr.getItems()) {
+ System.out.printf("uri=%s added=%s%n", info.getUri(), info.getAdded());
+ }
+ */
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]