console/libgnt/test/combo.c

changeset 14022
51776fed1be2
parent 14005
198d1658b390
child 14041
6afba85cfc30
--- a/console/libgnt/test/combo.c	Mon Jul 17 21:33:50 2006 +0000
+++ b/console/libgnt/test/combo.c	Mon Jul 17 22:27:26 2006 +0000
@@ -20,8 +20,10 @@
 	GntWidget *box, *combo, *button;
 	GntWidget *hbox;
 
+#ifdef STANDALONE
 	freopen(".error", "w", stderr);
 	gnt_init();
+#endif
 	
 	box = gnt_box_new(FALSE, TRUE);
 	gnt_widget_set_name(box, "box");
@@ -61,9 +63,11 @@
 
 	gnt_widget_show(box);
 
+#ifdef STANDALONE
 	gnt_main();
 
 	gnt_quit();
+#endif
 
 	return 0;
 }

mercurial