diff console/libgnt/test/combo.c @ 13960:a06f7495af6f

[gaim-migrate @ 16513] It is possible to have multiple gnt-applications sharing the same screen. To try this, 'make WM' in console/libgnt/test. It will have a small 'Command' entry. You can give a command like './focus.so' (or one of the other examples). The applications can also be executed standalone. This required some tinkering to the Makefile. I am not sure whether there is an easier way of doing it. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 17 Jul 2006 22:27:26 +0000
parents 25be562aaca8
children a71678d2da16
line wrap: on
line diff
--- 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;
 }