diff options
Diffstat (limited to 'src/dialog.cc')
-rw-r--r-- | src/dialog.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/dialog.cc b/src/dialog.cc index 83b32d8f..ebca3e0a 100644 --- a/src/dialog.cc +++ b/src/dialog.cc @@ -118,9 +118,9 @@ char *a_Dialog_open_file(const char *msg, } /* - * Show a new window with the provided text + * Make a new window with the provided text */ -void a_Dialog_text_window(const char *txt, const char *title) +void *a_Dialog_make_text_window(const char *txt, const char *title) { //int wh = 600, ww = 650, bh = 30; int wh = prefs.height, ww = prefs.width, bh = 30; @@ -151,7 +151,15 @@ void a_Dialog_text_window(const char *txt, const char *title) window->resizable(td); window->end(); - window->show(); + return window; +} + +/* + * Show a window. + */ +void a_Dialog_show_text_window(void *vWindow) +{ + ((Window *)vWindow)->show(); } /*--------------------------------------------------------------------------*/ |