GNOME Bugzilla – Bug 423405
Form initially truncates values of parameters with options applied
Last modified: 2007-04-19 12:34:41 UTC
When setting an option for a parameter, by setting the entry-plugin property to "textual:CURRENCY=EUR", and then showing this in a form, the property value is truncated to the first character of the currency and the first character of the value (for example, E2 instead of EUR 25.99). After switching to the next record in the form, it works. Also, the form does not recognize changes in the entry (it does not make the commit button sensitive when the value changes). However, obtaining the entry from the form via gnome_db_basic_form_get_entry_widget() and then setting the "options" property to "CURRENCY=EUR" works. I think the first approach should be the recommended way, though, because it also works for grids.
Created attachment 85395 [details] Testcase This shows the problem with the sqlite example database from gnome-db-demo. Make sure to adjust the LIBGNOMEDB_DATADIR define near the top of the file if it does not point to the correct location on your system.
Created attachment 85556 [details] [review] Proposed correction Can you please test that patch? If it's correct, I'll commit it ASAP. Thanks.
Your patch works. Thanks.
Ok, I'll apply the patch.