summaryrefslogtreecommitdiff
path: root/src/dialog.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-06-02 04:27:43 +0200
committerjcid <devnull@localhost>2008-06-02 04:27:43 +0200
commitc9332309b606361609ace591be1266ab59f9c0d4 (patch)
treec54450e2eb5f582c21fa74167cbdf424e8e4dd32 /src/dialog.cc
parentcf987dd5f89ceb29fcf71bc95eedb95145fa7c05 (diff)
- Moved charset decoding into cache.
Diffstat (limited to 'src/dialog.cc')
-rw-r--r--src/dialog.cc14
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();
}
/*--------------------------------------------------------------------------*/