1.8.4: 2008-12-11 Murray Cumming * glom/Makefile.am: * glom/dialog_existing_or_new.[h|cc]: Also check an alternative directory path for the examples because an (unofficial) Ubuntu package installs them in an unexpected location. I would rather find out how/why that is happening though. 2008-12-09 Murray Cumming * glom/dialog_import_csv.[h|cc]: validate_primary_key(): Avoid a null pointer dereference (crash) if there is no primary key, though that should never happen now. handle_line(), import(): Use a sorted tree model so the fields list is alphabetically sorted. Ubuntu bug #https://bugs.launchpad.net/ubuntu/+source/glom/+bug/306593 (elmergato) 2008-12-09 Murray Cumming * glom/mode_design/users/dialog_groups_list.cc: * glom/mode_design/users/dialog_users_list.cc: Constructors: Do not enable row drag and drop on the treeviews, because it is not used and it just confuses users who trigger it accidentally. This was just some left-over code from when these classes were started by copying the layout dialog. As mentioned in Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/299573 (elmergato) 2008-12-09 Murray Cumming * glom/dialog_existing_or_new.cc: Constructor: When the examples directory does not exist, mention the path in the stderr message, to help us to debug the problem. 2008-12-08 Murray Cumming * glom/utility_widgets/canvas/canvas_group_grid.cc: create_lines(): Do not create the grid lines with 0 steps, to avoid a hang. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/303453 (elmergato) 2008-12-04 Murray Cumming * glom/libglom/data_structure/foundset.[h|cc]: Added has_no_criteria() to check if it has a sort order or where clause. * glom/libglom/document/document_glom.[h|cc]: Added set_criteria_current(), like set_layout_current(), so we can temporarily remember the sort (and find) for a table while navigating. DocumentTableInfo: Hand-wrote copy constructor and operator=() rather than depend on generated ones. * glom/utility_widgets/db_adddel/db_adddel.[h|cc]: Added signal_sort_clause_changed, emitted when the user clicks on the column header, which already caused a refresh with that sort. * glom/mode_data/box_data_list.[h|cc]: Respond to a sort change in the DbAddDel widget, saving it temporarily in the document. * glom/mode_data/frame_glom.cc: show_table(): Use the remembered criteria, from the document, where there is one. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/303422 (elmergato) This was backported from svn trunk because it also allows the sort to be used for the top-level of reports. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/303425 (elmergato) 2008-12-06 Murray Cumming * glom/combobox_fields.cc: on_cell_data_title(): Pass a ustring to set_property() for the (None) item, so it really shows up. set_property() cannot handle a char* there, it seems. For instance, this means that the choices fields can be cleared again. This regression probably happened when we first ported Glom to Maemo. Bug found by Arq. Maximiliano Meilán. 2008-12-06 Murray Cumming * glom/box_reports.cc: on_adddel_Add(): Set a default title based on the name, when adding a new report, as we do for tables, relationships, print layouts, etc.