### Eclipse Workspace Patch 1.0
#P libgtk-java
Index: doc/examples/paned/PanedExample.java
===================================================================
RCS file: /cvs/gnome/libgtk-java/doc/examples/paned/PanedExample.java,v
retrieving revision 1.6
diff -u -r1.6 PanedExample.java
--- doc/examples/paned/PanedExample.java	3 Mar 2004 20:28:37 -0000	1.6
+++ doc/examples/paned/PanedExample.java	15 Dec 2005 10:11:02 -0000
@@ -58,7 +58,7 @@
 		scrolledWindow.setPolicy(PolicyType.AUTOMATIC, PolicyType.AUTOMATIC);
 
 		// Create a new list and put it in the scrolled window
-		SimpleList list = new SimpleList();
+		SimpleList list = SimpleList.init();
 		scrolledWindow.addWithViewport(list);
 		list.show();
 
Index: src/java/org/gnu/gtk/SimpleList.java
===================================================================
RCS file: /cvs/gnome/libgtk-java/src/java/org/gnu/gtk/SimpleList.java,v
retrieving revision 1.20
diff -u -r1.20 SimpleList.java
--- src/java/org/gnu/gtk/SimpleList.java	13 Sep 2005 03:22:13 -0000	1.20
+++ src/java/org/gnu/gtk/SimpleList.java	15 Dec 2005 10:11:02 -0000
@@ -37,11 +37,11 @@
 	/**
 	 * Constructs a SimpleList object.
 	 */
-	public SimpleList() {
-		super(init());
+	private SimpleList(TreeView v) {
+		super(v.getHandle());
 		dataBlock = new DataColumnString();
 		store = new ListStore(new DataColumn[] { dataBlock });
-		view = TreeView.getTreeView(getHandle());
+		view = v;
 		view.setModel(store);
 		column = new TreeViewColumn();
 		renderer = new CellRendererText();
@@ -52,9 +52,9 @@
 		size = 0;
 	}
 	
-	private static Handle init() {
+	public static SimpleList init() {
 		TreeView v = new TreeView();
-		return v.getHandle();
+		return new SimpleList(v);
 	}
 
 	/**
Index: doc/examples/expander/SimpleExpander.java
===================================================================
RCS file: /cvs/gnome/libgtk-java/doc/examples/expander/SimpleExpander.java,v
retrieving revision 1.1
diff -u -r1.1 SimpleExpander.java
--- doc/examples/expander/SimpleExpander.java	28 Mar 2004 17:59:27 -0000	1.1
+++ doc/examples/expander/SimpleExpander.java	15 Dec 2005 10:11:02 -0000
@@ -48,7 +48,7 @@
             }
         } );
 
-        SimpleList list = new SimpleList();
+        SimpleList list = SimpleList.init();
         list.addStart("First list element");
         for (int i = 0; i < items.length; i++) {
             String item = items[i];
