chooser = new Shape_chooser(ifile, names, 400, 64);
chooser = new Shape_chooser(ifile, 400, 64); chooser->set_shape_names(names);
int main	(	int argc,	char **argv	)	{					// Open file.	ifile = new Vga_file("static/shapes.vga");	if (!ifile->is_good())		{		cerr << "Error opening image file 'shapes.vga'.\n";		return (1);		}					// Read in shape names.	int num_names = ifile->get_num_shapes();	names = new char *[num_names];	Flex *items = new Flex("static/text.flx");	size_t len;	for (int i = 0; i < num_names; i++)		names[i] = items->retrieve(i, len);	delete items;	gtk_init(&argc, &argv);	gdk_rgb_init();					// Create top-level window.	topwin = gtk_window_new(GTK_WINDOW_TOPLEVEL);	gtk_window_set_title(GTK_WINDOW(topwin), "Shape-Browser Test");					// Set delete handler.	gtk_signal_connect(GTK_OBJECT(topwin), "delete_event",				GTK_SIGNAL_FUNC(Quit), NULL);					// Set border width of top window.	gtk_container_border_width(GTK_CONTAINER(topwin), 10);	/* 	 *	Create shape chooser.	 */	GtkWidget *vbox = gtk_vbox_new(FALSE, 0);	gtk_container_add(GTK_CONTAINER(topwin), vbox);	gtk_widget_show(vbox);	chooser = new Shape_chooser(ifile, names, 400, 64);	gtk_box_pack_start(GTK_BOX(vbox), chooser->get_widget(), TRUE, TRUE, 0);	gtk_widget_show(topwin);	// Show top window.	gtk_main();	return (0);	}