Commit 08834a62 authored by Scott Klement's avatar Scott Klement
Browse files

Added +/- always_ask option

parent bd291ff3
2004-03-29 Scott Klement <klemscot@klements.com>
- Added +always_ask option so that Win32 print screen always asks for a
new device.
2004-03-10 Scott Klement <klemscot@klements.com>
- Include searched-for include paths for openssl in tn5250.pc file so
that projects like gnome-5250 will compile w/pkgconfig
......@@ -5,7 +9,7 @@
2004-03-06 Scott Klement <klemscot@klements.com>
- Upgraded GLIB support to use GLIB 2.0.
2003-02-05 Scott Klement <klemscot@klements.com>
2004-02-05 Scott Klement <klemscot@klements.com>
- Fix memory leak in local print screen function, and add more diagnostics
- Fix memory leak (thanks to Marc Antoine Ruel) in ruler drawing.
......
......@@ -224,6 +224,7 @@ struct _Tn5250TerminalPrivate {
int unix_like_copy: 1;
int resize_fonts: 1;
int local_print: 1;
int always_ask: 1;
};
......@@ -399,6 +400,7 @@ Tn5250Terminal *tn5250_win32_terminal_new(HINSTANCE hInst,
r->data->unix_like_copy = 0;
r->data->resize_fonts = 0;
r->data->local_print = 0;
r->data->always_ask = 0;
r->data->caret_style = CARETSTYLE_NOBLINK;
r->data->pd = NULL;
......@@ -462,6 +464,9 @@ static void win32_terminal_init(Tn5250Terminal * This)
if (tn5250_config_get_bool(This->data->config, "local_print_key"))
This->data->local_print = 1;
if (tn5250_config_get_bool(This->data->config, "always_ask"))
This->data->always_ask = 1;
if (tn5250_config_get(This->data->config, "copymode")) {
if (!strcasecmp(tn5250_config_get(This->data->config,"copymode"),
"text"))
......@@ -2734,6 +2739,9 @@ void win32_print_screen(Tn5250Terminal *This, Tn5250Display *display) {
MessageBox(This->data->hwndMain, "Print screen successful!", "TN5250",
MB_OK|MB_ICONINFORMATION);
if (This->data->always_ask)
win32_destroy_printer_info(This);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment