diff --git a/src/pw3270/actions.c b/src/pw3270/actions.c index 255040d..bdea1c9 100644 --- a/src/pw3270/actions.c +++ b/src/pw3270/actions.c @@ -73,6 +73,7 @@ static void connect_action(GtkAction *action, GtkWidget *widget) if(host) { + lib3270_set_options(v3270_get_session(widget),0); v3270_connect(widget,host); return; } @@ -80,6 +81,7 @@ static void connect_action(GtkAction *action, GtkWidget *widget) host = get_string_from_config("host","uri",""); if(*host) { + load_3270_options_from_config(widget); v3270_connect(widget,host); g_free(host); return; diff --git a/src/pw3270/dialog.c b/src/pw3270/dialog.c index e38fa64..f6eb271 100644 --- a/src/pw3270/dialog.c +++ b/src/pw3270/dialog.c @@ -32,7 +32,46 @@ #include "globals.h" #include -/*--[ Implement ]------------------------------------------------------------------------------------*/ + static const struct _lib3270_options + { + LIB3270_OPTION value; + const gchar * key; + const gchar * text; + const gchar * tooltip; + } lib3270_options[] = + { + { + LIB3270_OPTION_COLOR8, + "color8", + N_( "_8 colors" ), + N_( "If active, pw3270 will respond to a Query(Color) with a list of 8 supported colors." ) + }, + + { + LIB3270_OPTION_AS400, + "as400", + N_( "Host is AS_400" ), + NULL + }, + + }; + + +/*--[ Globals ]--------------------------------------------------------------------------------------*/ + + void load_3270_options_from_config(GtkWidget *widget) + { + int f; + LIB3270_OPTION opt = 0; + + for(f=0;f 1); { @@ -423,6 +442,22 @@ NULL ); + { + int f; + LIB3270_OPTION opt = 0; + + for(f=0;f