changeset 308:f844a07c5915

Get it working on OS/2. :)
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 31 Mar 2003 08:42:28 +0000
parents 324587c06cea
children 49047a8787cb
files dwtest.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dwtest.c	Mon Mar 31 08:21:55 2003 +0000
+++ b/dwtest.c	Mon Mar 31 08:42:28 2003 +0000
@@ -417,6 +417,8 @@
 
 	entryfield = dw_entryfield_new("", 100L);
 
+	dw_entryfield_set_limit(entryfield, 260);
+
 	dw_box_pack_start(browsebox, entryfield, 100, 15, TRUE, TRUE, 4);
 
 	browsebutton = dw_button_new("Browse", 1001L);
@@ -519,7 +521,7 @@
 	dw_box_pack_start( notebookbox3, treebox, 500, 200, TRUE, TRUE, 0);
 
 	/* now a tree area under this box */
-	tree = dw_tree_new(0);
+	tree = dw_tree_new(101);
 	dw_box_pack_start( notebookbox3, tree, 500, 200, TRUE, FALSE, 1);
 
 	/* and a status area to see whats going on */
@@ -564,9 +566,11 @@
 	dw_box_pack_start( notebookbox4, containerbox, 500, 200, TRUE, TRUE, 0);
 
 	/* now a container area under this box */
-	container = dw_container_new(0);
+	container = dw_container_new(100);
 	dw_box_pack_start( notebookbox4, container, 500, 200, TRUE, FALSE, 1);
 
+	dw_container_set_view(container, DW_CV_DETAIL | DW_CV_MINI | DW_CA_DETAILSVIEWTITLES, 16, 16);
+
 	/* and a status area to see whats going on */
 	container_status = dw_status_text_new("", 0);
 	dw_box_pack_start( notebookbox4, container_status, 100, 20, TRUE, FALSE, 1);
@@ -584,7 +588,7 @@
 		sprintf(buffer, "Filename %d",z+1);
 		if (z == 0 ) thisicon = foldericon;
 		else thisicon = fileicon;
-		dw_filesystem_set_file(container, containerinfo, z, buffer, thisicon);
+		dw_filesystem_set_file(container, containerinfo, z, strdup(buffer), thisicon);
 		dw_filesystem_set_item(container, containerinfo, 0, z, &size);
 
 		time.seconds = z+10;
@@ -597,7 +601,7 @@
 		date.year = z+2000;
 		dw_filesystem_set_item(container, containerinfo, 2, z, &date);
 
-		dw_container_set_row_title(containerinfo, z, buffer);
+		dw_container_set_row_title(containerinfo, z, "Don't allocate from the stack");
 	}
 
 	dw_container_insert(container, containerinfo, 3);