turned NewGui into a singleton, and made OSystem a pseudo-singleton; added Widget::findWidget (preparing to add support for nested widgets, for the tab widget)

svn-id: r11045
This commit is contained in:
Max Horn 2003-11-02 02:18:16 +00:00
parent f2c4bbbdbf
commit b27a871f87
46 changed files with 182 additions and 233 deletions

View file

@ -48,7 +48,6 @@ static int lastvm=-1;
static void displaySaveResult(vmsaveResult res)
{
extern NewGui *g_gui;
char buf[1024];
switch(res) {
@ -69,7 +68,7 @@ static void displaySaveResult(vmsaveResult res)
break;
}
MessageDialog dialog(g_gui, buf);
MessageDialog dialog(buf);
dialog.runModal();
}