GNOME Bugzilla – Bug 625454
Format classification
Last modified: 2010-07-30 17:40:32 UTC
In Gnumeric when you import a text file with the configurable importer, on the last page of the configuration dialog you can choose formats for each column. The column header indicates the classification of that format: General, Text, Date, Time, Number... These classifications are obtained by calling go_format_sel_format_classification (sf)); on the format obtained from the selector. If you choose an accounting or currency format, the classification says "Number". That is greatly confusing.
When we pass the format tot he selector, it figures out the category correctly (using study_format), when we just ask for the family it determines the family by calling go_format_get_family which seems to return the wrong value.
go_format_get_family does not know about the meaning of textual annotations like currency names, units, etc. And it shouldn't. Using go_format_get_details might help.
Created attachment 166846 [details] [review] proposed patch This patch moves the code from study_format (which is used by the selector to determine the family page to open) into study_this_format. Study_this_format is then called both from the original study_format (with the items from the selector) and from go_format_sel_format_classification.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.