diff options
author | corvid <corvid@lavabit.com> | 2010-02-17 23:10:05 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-02-17 23:10:05 +0000 |
commit | 0df75e6a18ef70fcd87f819e0c022b2cd9b381aa (patch) | |
tree | ec5d00f896e66366e1357576b08edb9dbb882eb6 /src/dialog.cc | |
parent | 63f50abc486fa562c947bac2073173ec246dbfad (diff) |
dialog recombine make/show_text_window
The function had been split up in June 08 so that I could put an
unref_buf() between them. Now that view source is a dpi, it's no longer
necessary.
Diffstat (limited to 'src/dialog.cc')
-rw-r--r-- | src/dialog.cc | 14 |
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(); } /*--------------------------------------------------------------------------*/ |