1. 02 Nov, 2011 2 commits
    • 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.
      25562202
    • 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.
      db74a44d
  2. 01 Nov, 2011 2 commits
  3. 31 Oct, 2011 2 commits
  4. 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
      database.
      * 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 .
      4c561b07
    • 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.
      e0e6e9b2
  5. 28 Oct, 2011 8 commits
  6. 27 Oct, 2011 5 commits
  7. 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.
      6e78d9b2
    • 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.
      cad49f76
    • 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.
      0040b65e
  8. 25 Oct, 2011 3 commits
  9. 24 Oct, 2011 11 commits
  10. 23 Oct, 2011 1 commit
  11. 21 Oct, 2011 1 commit
    • Murray Cumming's avatar
      Avoid calling g_thread_init() if possible. · 492690ed
      Murray Cumming authored
      * configure.ac: Add a comment about not linking to gthread-2.0 in future.
      * glom/libglom/init.cc:
      * tests/import/test_parsing.cc:
      * tests/import/test_signals.cc: Avoid calls to deprecated Glib::thread_init()
      if glib is new enough.
      This is a step to making Glom build against glibmm from git master with
      --enable-warnings=fatal.
      492690ed