Commit f1f0360fa77b2a0a83b1bc9a628671b5ebcfa488

Authored by Perry Werneck
1 parent e31ad6d9

Adding configuration option to set the unlock_delay property.

Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
src/pw3270/window.c
... ... @@ -715,11 +715,16 @@ static GtkWidget * trace_window = NULL;
715 715 if(str)
716 716 g_free(str);
717 717 }
  718 +
718 719 {
719 720 char str[2];
720 721 str[0] = get_integer_from_config("terminal","model",2)+'0';
721 722 str[1] = 0;
722   - lib3270_set_model(v3270_get_session(widget->terminal),str);
  723 + lib3270_set_model(host,str);
  724 +
  725 + unsigned int unlock_delay = (unsigned int) get_integer_from_config("terminal","unlock_delay",(int) lib3270_get_unlock_delay(host));
  726 + lib3270_set_unlock_delay(host,unlock_delay);
  727 +
723 728 }
724 729  
725 730 for(f=0;f<LIB3270_TOGGLE_COUNT;f++)
... ...