--- np2/x11/Attic/toolkit.c 2003/11/16 16:43:45 1.1 +++ np2/x11/Attic/toolkit.c 2007/01/10 18:02:21 1.7 @@ -1,3 +1,5 @@ +/* $Id: toolkit.c,v 1.7 2007/01/10 18:02:21 monaka Exp $ */ + /* * Copyright (c) 2003 NONAKA Kimihiro * All rights reserved. @@ -10,8 +12,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -33,15 +33,19 @@ #include "sysmng.h" -#if defined(USE_GTK) && defined(USE_QT) +#if (USE_GTK2 + USE_SDL) > 1 gui_toolkit_t* toolkitp; static struct { gui_toolkit_t* toolkit; } toolkit[] = { +#if USE_GTK2 > 0 { >k_toolkit, }, - { &qt_toolkit, }, +#endif +#if USE_SDL > 0 + { &sdl_toolkit, }, +#endif }; void @@ -65,4 +69,11 @@ toolkit_initialize(void) toolkitp = >k_toolkit; } -#endif /* USE_GTK && USE_QT */ +#endif /* USE_GTK2 + USE_SDL > 1 */ + +void +toolkit_msgbox(const char *title, const char *msg) +{ + + toolkit_messagebox(title, msg); +}