diff console/libgnt/test/multiwin.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 841a5ffbfee4
children 0a0d2a1fd2bc
line wrap: on
line diff
--- a/console/libgnt/test/multiwin.c	Mon Jul 17 21:33:50 2006 +0000
+++ b/console/libgnt/test/multiwin.c	Mon Jul 17 22:27:26 2006 +0000
@@ -13,14 +13,13 @@
 
 int main()
 {
+#ifdef STANDALONE
 	freopen(".error", "w", stderr);
 	gnt_init();
+#endif
 
 	GntWidget *hbox, *tree, *box2;
 
-	box(stdscr, 0, 0);
-	wrefresh(stdscr);
-
 	hbox = gnt_box_new(FALSE, TRUE);
 	box2 = gnt_box_new(FALSE, TRUE);
 
@@ -64,9 +63,11 @@
 
 	g_timeout_add(5000, (GSourceFunc)show, box2);
 
+#ifdef STANDALONE
 	gnt_main();
 
 	gnt_quit();
+#endif
 
 	return 0;
 }