2008-11-26 Murray Cumming * configure.in: Revert the dependency on libgda-4.0. I am not sure how that got into this branch. * glom/relationships_overview/dialog_relationships_overview.[h|cc]: Respond to changes in the scrolledwindow adjustments to increase the canvas size when the window size changes, so it is always big enough, avoiding dead areas. Bug #559157 (Iain Lane). 2008-11-25 Murray Cumming * glom/mode_design/print_layouts/canvas_layout_item.cc: * glom/mode_design/print_layouts/canvas_print_layout.cc: * glom/utility_widgets/canvas/canvas_group_resizable.cc: Revert back to the old goocanvasmm enum names to avoid the need for a new goocanvasmm release. 2008-11-25 Armin Burgmeier * glom/mode_data/dialog_layout_export.cc (get_layout_groups): Fixed a crash which was caused by accessing mapGroups[1] in a default-constructed vector. Bug #557052. 2008-11-25 Murray Cumming * glom/libglom/utils.[h|cc]: Added a show_ok_dialog() overload that takes the parent_window as a pointer to simplify code by avoiding the need for a null check by callers. * glom/mode_design/fields/box_db_table_definition.cc: check_field_change(): Refuse to leave no primary key set because the rest of Glom expects each table to have one, by refusing to directly unset a primary key. When setting a primary key, ask the user if they really want to _change_ the primary key, and do the suitability checks that were previously in change_definition(). change_definition(): When setting a primary key, unset the previous primary key first. This prevents the table from ever having no primary key. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/299549 (elmergato) Glom bug #562147 2008-11-24 Murray Cumming * glom/mode_data/box_data_details.cc: set_found_set_from_primary_key_value(): Do not crash if there is no primary key, though we should not allow tables with no primary keys. 2008-11-24 Murray Cumming * glom/frame_glom.cc: update_table_in_document_from_database: Ignore the default_value property from libgda/database, because we only use it from the document, because libgda returns weird values. This prevents the loss of the default value information when reloading a document. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/299896 (elmergato) 2008-11-24 Murray Cumming * glom/utility_widgets/db_adddel/db_adddel.cc user_added(): Call set_value_key(), like the old code did. Otherwise, each field edit adds another record, generating a new primary key each time, resulting in duplicate records. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/300819 (elmergato) 2008-11-24 Murray Cumming * glom/mode_design/users/dialog_groups_list.cc: on_button_group_new(): Put quotes around the group name, to avoid a problem when it contains a space. 2008-11-24 Murray Cumming * glom/utility_widgets/db_adddel/db_adddel.[h|cc]: Removed the unused signal_user_requested_delete signal. on_MenuPopup_activate_Delete() (also called when the button is pressed): Actually call user_requested_delete(), so that the user can delete a list row. I forgot to do this when moving the other stuff down into DbAddDel. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/299853 (elmergato) 2008-11-21 Murray Cumming * glom/glom_developer.glade: Corrected a button name to avoid a crash when editing reports. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/300054 2008-11-21 Murray Cumming * glom/glom.glade: dialog_import_csv: Added a label for advice about the expected data format. * glom/dialog_import_csv.cc: Constructor: Generate advice text in the label, showing an example of the expected ISO date format. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/299591 2008-11-21 Murray Cumming * glom/glom.glade: Mark a tooltip as translatable in the initial dialog. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/299556 2008-11-21 Murray Cumming * glom/libglom/data_structure/glomconversions.c: sanity_check_date_text_representation_uses_4_digit_years(): Default to dd/mm/yyyy for dates when the translator has not provided a 4-digit-year date syntax for the locale, printing a warning that the default might not be suitable. This seems better than failing. 2008-11-21 Murray Cumming * glom/libglom/data_structure/glomconversions.[h|cc]: Added sanity_check_date_parsing() and sanity_check_date_text_representation_uses_4_digit_years(). * glom/main.cc: Use them to show informative warnings at startup. The translators comment for %x mentions those warnings now too. * po/es.po: Add a translation for %x because the es locales do not use 4-digit years for this. Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/300057 * glom/test_pyembed.cc: Add a cast to avoid a warning. * glom/utility_widgets/db_adddel/db_adddel.cc: Initialize InnerIgnore members to avoid warnings, though these would always be initialized in real life. 2008-11-11 Murray Cumming * glom/mode_design/print_layouts/canvas_layout_item.cc: * glom/mode_design/print_layouts/canvas_print_layout.cc: * glom/utility_widgets/canvas/canvas_group_resizable.cc: Adapt to goocanvasmm enum name changes.