Commit 6d9d1bec authored by claes's avatar claes

Bugfiz in value input max-length

parent 2538ccbd
/*
* Proview $Id: wb_watt_gtk.cpp,v 1.5 2007-02-06 13:22:47 claes Exp $
* Proview $Id: wb_watt_gtk.cpp,v 1.6 2007-04-23 11:45:51 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -92,14 +92,14 @@ void WAttGtk::change_value( int set_focus)
gdk_drawable_get_size( pane->window, &w, &h);
gtk_paned_set_position( GTK_PANED(pane), h - 170);
gtk_widget_grab_focus( cmd_scrolledtextview);
input_max_length = input_size - 1;
input_max_length = input_size;
input_multiline = 1;
}
else {
text_w = cmd_input;
g_object_set( text_w,
"visible", TRUE,
"max-length", input_size - 1, NULL);
"max-length", input_size, NULL);
gtk_widget_grab_focus( cmd_input);
input_multiline = 0;
}
......
/*
* Proview $Id: wb_wtt_gtk.cpp,v 1.11 2007-02-21 14:13:12 claes Exp $
* Proview $Id: wb_wtt_gtk.cpp,v 1.12 2007-04-23 11:45:43 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -721,7 +721,7 @@ void WttGtk::open_change_value()
else
g_object_set( cmd_input, "visible", TRUE, NULL);
g_object_set( cmd_input, "max-length", input_size - 1, NULL);
g_object_set( cmd_input, "max-length", input_size, NULL);
message( ' ', "");
cmd_entry->set_recall_buffer( &value_recall);
gtk_widget_grab_focus( cmd_input);
......
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