1.11.2: 2009-09-09 Michael Hasselmann Refactoring Glom::Dialog_Import_CSV * ChangeLog, Makefile_glom.am, glom/dialog_import_csv.[h|cc], glom/import_csv.[h|cc], glom/dialog_import_csv_progress.cc: Moved the inlined Parser class from the Dialog_Import_CSV class to the new CsvParser class. The CsvParser already handles the line scanning and encoding conversion but is supposed to take over the file reading responsibility as well. In order to allow the Dialog_Import_CSV class to parse a scanned line into its tree model the parser emits a lineScanned signal, with the currently scanned line as parameter. 2009-09-08 Johannes Schmid Bug 594357 - Maemo: sqlite behaves strange * glom/utility_widgets/db_addel/glom_db_treemodel.cc: DbTreeModel::create(): Create the correct DataAccessWrapper in both codepaths and not only in the exception code path. That makes no difference for postgres but is needed for sqlite. 2009-09-05 Murray Cumming connection_request_password_and_attempt(): Fix a crash in client-only mode. * glom/frame_glom.[h|cc]: connection_request_password_and_attempt(): Move some decision-making into handle_request_password_connection_error, to allow us to handle the no-exception API better, though this is clearer anyway, or would be without the ifdefs. 2009-09-05 Murray Cumming * glom/application.cc: on_document_load(): Add a ! to really check for unsupported backends. 2009-09-05 Murray Cumming * glom/application.cc: check_document_hosting_mode_is_supported(): Correct and ifdef to an ifndef. 2009-09-05 Murray Cumming Maemo: Use Hildon::FileChooserDialog for opening files. * glom/application.[h|cc]: Remove unused (and unnecessary since the new initial dialog) on_menu_file_open() and on_menu_file_close() overrides and ui_file_select_open_with_browse(). * glom/dialog_existing_or_new.cc: on_select_clicked(): Use Hildon::FileChooserDialog on Maemo. * glom/bakery/app_withdoc_gtk.cc: Remove the uncommented undef of GLOM_ENABLE_MAEMO - no more nasty hacks please. Instead comment-out the set_menu() call with a TODO, leaving the rest of the maemo-specific code working. 2009-09-05 Murray Cumming Check for unsupported hosting modes. * glom/application.[h|cc]: Added check_document_hosting_mode_is_supported() to warn the user if the build cannot use the hosting mode in the file, and call it from on_document_load(). * glom/libglom/document/bakery/document.cc: load(), load_from_data(): Call set_is_new(false) so we can check for this in App/View::on_document_load(), to avoid complaining about an unused default hosting mode. 2009-09-05 Murray Cumming * glom/application.cc: offer_new_or_existing(): In the client-only build, actually handle the enum for opening an existing file in client mode. 2009-09-05 Murray Cumming offer_new_or_existing(): Add Gtk::Builder error handling . * glom/application.cc: offer_new_or_existing(): Add error handling to show how GtkBuilder complains about Atk objects in .glade files on Maemo, and actually fails. 2009-09-05 Murray Cumming * glom/print_layout/canvas_print_layout.cc: * glom/utility_widgets/imageglom.cc: Fix the build when -fno-exceptions is used. 2009-09-05 Murray Cumming Added dlopen test of the python library. * glom/libglom/test_connectionpool.cc: * glom/libglom/test_document.cc: Fixed the build without exceptions. * Makefile_tests.am: Added test_load_python_library, using dlopen() to show the numpunct linker error (bug #594142) without actually using python. 2009-09-04 Daniel Elstner Do not try to catch non-existing MetaStructError * glom/base_db.cc (Base_DB::get_fields_for_table_from_database): For now, catch Glib::Error instead of Gnome::Gda::MetaStructError, which does not exist. 2009-09-04 Murray Cumming Avoid compiler warnings. * configure.ac: Add a comment about using the PYTHON environment variable to specify the python version. * glom/dialog_existing_or_new.cc: * glom/dialog_import_csv_progress.cc: * glom/utility_widgets/canvas/canvas_group_resizable.cc: Avoid some compiler warnings, mostly about missing returns in unlikely situations. 2009-09-04 Murray Cumming Mention the failed python module name on stdcerr. * glom/python_embed/glom_python.cc: glom_python_module_is_available(), gda_python_module_is_available(): Output a hint to the command-line too, in case maemo crashes when showing UI as mine does at the moment, and to mention the exact python module name that failed. 2009-09-04 Murray Cumming Fix the client-only non-maemo build on maemo. * configure.ac: Correct the AS_IF() calls so that we really do not need iso-codes in client-only mode. * glom/print_layout/canvas_layout_item.cc: * glom/print_layout/canvas_print_layout.cc: * glom/printoperation_printlayout.cc: Fix the build without exceptions, without properties and without default signal handlers, with ifdefs. * glom/base_db.cc: get_fields_for_table_from_database(): Actually add a no-exceptions ifdef for the use of Gda::MetaStruct::complement() instead of just ifdefing it out for Maemo. * glom/mode_data/notebook_data.cc: * glom/utility_widgets/adddel/adddel.cc: * glom/utility_widgets/db_adddel/db_adddel.cc: * glom/utility_widgets/entryglom.cc: * glom/utility_widgets/imageglom.cc: Likewise, ifdef the use of get_accessible on GTKMM_ATKMM_ENABLED instead of GLOM_ENABLE_MAEMO, to fix the client-only non-maemo build on Maemo. Again, please stop abusing the MAEMO ifdef for hacks without even a TODO. 2009-09-04 Murray Cumming * glom/mode_design/layout/layout_item_dialogs/dialog_buttonscript.h: Removed unnecessary GLOM_ENABLE_CLIENT_ONLY ifndef. 2009-09-04 Murray Cumming Moved more design-only classes to glom/mode_design/ * glom/libglom/data_structure/iso_codes.[h|cc]: * glom/utility_widgets/comboentry_currency.cc * glom/mode_design/translation/: Moved to glom/mode_design/. * glom/Makefile_glom.am, *.[h|cc]: * po/POTFILES.in: Adapted. * configure.ac: Make use of iso-codes dependent on client-only, not maemo, because that actually makes sense.