[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[XForms] Default initialisation of input_return for MULTILINE_INPUT
From: |
Eberhard Kuemmerle |
Subject: |
[XForms] Default initialisation of input_return for MULTILINE_INPUT |
Date: |
Fri, 3 Dec 2010 09:59:14 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.12) Gecko/20101026 SUSE/3.1.6 Thunderbird/3.1.6 |
Hello,
according to the documentation, |FL_RETURN_END_CHANGED
<http://xforms-toolkit.org/doc/xforms_6.html#FL_005fRETURN_005fEND_005fCHANGED>
should be set as the default value for all input objects.
But that is not true for ||FL_MULTILINE_INPUT, the default
initialisation is missing there.
To correct that, I suggest the following patch to the function fl_add_input:
--- input.c_orig # input.c from xforms-1.0.93sp1.tar.gz
+++ input.c
@@ -1711,6 +1711,7 @@
fl_add_child( sp->dummy, sp->hscroll );
fl_set_object_callback( sp->input, input_cb, 0 );
+ fl_set_object_return( sp->dummy, FL_RETURN_END_CHANGED );
}
fl_add_object( fl_current_form, sp->dummy );
With best regards,
Eberhard
|
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
- [XForms] Default initialisation of input_return for MULTILINE_INPUT,
Eberhard Kuemmerle <=