1. 04 Nov, 2011 6 commits
    • Murray Cumming's avatar
      Handle GdaBlob in query results instead of just GdaBinary. · daed2f59
      Murray Cumming authored
      	* glom/libglom/data_structure/field.cc: to_file_format():
      	The Value might have a GdaBlob that needs to be read first, to get the
      	GdaBinary. This can happen with SQLite.
      	* glom/libglom/python_embed/pygdavalue_conversions.cc:
      	glom_pygda_value_as_boost_pyobject(): Handle GdaBlob too, though neither
      	this or the GdaBinary case use the data length, so this code is doomed
      	if it is ever used. I need to find out if Python can really represent
      	binary data, or if this should just not be handled here.
      	* glom/utility_widgets/imageglom.cc: get_binary(): Handle GdaBlob
      	too in the original data.
      	* tests/test_selfhosting_new_then_image.cc: Handle GdaBlob in the
      	data that is read back, for SQLite. Uncomment the SQLite test, fixing
      	make check with the latest libgda.
    • Murray Cumming's avatar
      1.19.17 · d2003c78
      Murray Cumming authored
    • Murray Cumming's avatar
      Correct the ChangeLog · 7523c014
      Murray Cumming authored
    • Murray Cumming's avatar
      Remove debug output. · effc8a04
      Murray Cumming authored
    • Murray Cumming's avatar
      Handle gdouble results from python functions. · 4b71b2c3
      Murray Cumming authored
      	* glom/libglom/data_structure/field.cc: Add a mapping
      	instead of ignoring doubles.
      	This avoids a stderr warning and probably makes calculations
    • Murray Cumming's avatar
      Fix some warnings about invalid field types with choices. · 9a9f148e
      Murray Cumming authored
      	* glom/mode_data/datawidget/combochoiceswithtreemodel.cc:
      	set_choices_related(): Set full field details on the
      	layout_choice_extra fields, to avoid invalid field types,
      	and stderr warnings about them.
  2. 03 Nov, 2011 8 commits
  3. 02 Nov, 2011 3 commits
    • Murray Cumming's avatar
      Fix make check. · 7df920e3
      Murray Cumming authored
      * examples/example_smallbusiness.glom: Resaved with correctly-formatted
      image data now that libgda works again.
      * tests/test_selfhosting_new_then_image.cc: Comment out the SQLite test
      because it fails and we do not care so much about that. Still, I will
      investigate it.
    • Murray Cumming's avatar
      Add and use utility functions for creating temporary files. · 25562202
      Murray Cumming authored
      * glom/libglom/utils.[h|cc]: Added get_temp_file_uri(),
      get_temp_file_path(), get_temp_directory_uri() and
      get_temp_directory_path(), using the correct awkward code that
      avoids overwriting existing files.
      * glom/application.cc:
      * glom/libglom/connectionpool_backends/postgres_self.cc:
      * glom/libglom/report_builder.cc:
      * glom/utility_widgets/imageglom.cc:
      * tests/import/utils.cc:
      * tests/test_document_autosave.cc:
      * tests/test_selfhosting_new_empty.cc:
      * tests/test_selfhosting_utils.cc: Use these functions instead
      of repeating the same stuff badly.
      * Makefile_tests.am: Link to libglom so the import tests can use
      the new utility functions.
    • Murray Cumming's avatar
      Make connections to central PostgreSQL servers work again. · db74a44d
      Murray Cumming authored
      	* glom/libglom/connectionpool_backends/postgres_central.cc: Do not
      	forget a previously-successful connection-but-not-to-the-database.
  4. 01 Nov, 2011 2 commits
  5. 31 Oct, 2011 2 commits
  6. 29 Oct, 2011 2 commits
    • Murray Cumming's avatar
      Image fields test: Get and set a value and check that it is the same. · 4c561b07
      Murray Cumming authored
      * tests/test_image.glom: Added an image file to set and get in the
      * Makefile_tests.am: Disttribute the image file.
      * tests/test_selfhosting_new_then_image.cc: tests(): Read the data
      from the file, use it to set the data, and then read that data back.
      Correct the type check. However, the data equality test fails due to
      libgda bug #662922 .
    • Murray Cumming's avatar
      libglom: Added build_sql_update_with_where_clause(). · e0e6e9b2
      Murray Cumming authored
      	* glom/libglom/utils.[h|cc]: Added build_sql_update_with_where_clause().
      	* glom/base_db.cc: set_field_value_in_database(): use it here instead
      	of manually creating a SqlBuilder.
  7. 28 Oct, 2011 8 commits
  8. 27 Oct, 2011 5 commits
  9. 26 Oct, 2011 3 commits
    • Murray Cumming's avatar
      Add and move #includes for the latest glibmm. · 6e78d9b2
      Murray Cumming authored
      	* glom/import_csv/csv_parser.cc:
      	* glom/import_csv/dialog_import_csv_progress.cc:
      	* glom/libglom/connectionpool.cc:
      	* glom/libglom/connectionpool_backends/postgres_self.cc:
      	* glom/libglom/privs.cc:
      	* glom/libglom/spawn_with_feedback.cc:
      	* glom/mode_data/box_data_list.cc:
      	* glom/mode_data/box_data_list_related.cc:
      	* glom/mode_data/db_adddel/db_adddel.cc:
      	* glom/mode_data/notebook_data.cc:
      	* glom/mode_design/print_layouts/window_print_layout_edit.h:
      	* glom/utility_widgets/dialog_image_load_progress.cc:
      	* glom/utility_widgets/dialog_image_save_progress.cc:
      	* glom/utils_ui.cc:
      	* tests/import/utils.cc: Add individual glibmm includes now that
      	gmmproc does not include glibmm.h from headers.
      	Always include glibmm/thread.h first to avoid deprecation warnings.
    • Murray Cumming's avatar
      Adapt to the latest goocanvasmm API. · cad49f76
      Murray Cumming authored
      	* glom/main.cc: Pass no arguments to init(), though I think I will
      	add the method overload back to goocanvasmm to avoid annoying people
      	too much.
    • Murray Cumming's avatar
      Avoid deprecated Gtk::HandleBox with latest gtkmm. · 0040b65e
      Murray Cumming authored
      * glom/utility_widgets/sidebar.[h|cc]: Removed, because Gtk::HandleBox
      is deprecated.
      * Makefile_glom.am: Remove mention of this file.
      * glom/utility_widgets/layouttoolbar.[h|cc]: Derive directly from
      Gtk::ToolPalette instead.
      * glom/mode_design/print_layouts/print_layout_toolbar.[h|cc]: Adapt.
      * glom/mode_design/print_layouts/window_print_layout_edit.h: The glade
      file still has a GtkHandleBox which we should remove, but in the
      meantime just use it via Gtk::Box.
  10. 25 Oct, 2011 1 commit