aboutsummaryrefslogtreecommitdiff
path: root/src/dialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialog.cc')
-rw-r--r--src/dialog.cc14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/dialog.cc b/src/dialog.cc
index c02ee223..47af9921 100644
--- a/src/dialog.cc
+++ b/src/dialog.cc
@@ -121,9 +121,9 @@ char *a_Dialog_open_file(const char *msg,
}
/*
- * Make a new window with the provided text
+ * Show a new window with the provided text
*/
-void *a_Dialog_make_text_window(const char *txt, const char *title)
+void a_Dialog_text_window(const char *txt, const char *title)
{
//int wh = 600, ww = 650, bh = 30;
int wh = prefs.height, ww = prefs.width, bh = 30;
@@ -159,15 +159,7 @@ void *a_Dialog_make_text_window(const char *txt, const char *title)
window->resizable(td);
window->end();
- return window;
-}
-
-/*
- * Show a window.
- */
-void a_Dialog_show_text_window(void *vWindow)
-{
- ((Window *)vWindow)->show();
+ window->show();
}
/*--------------------------------------------------------------------------*/