1. 24 Oct, 2011 4 commits
  2. 23 Oct, 2011 1 commit
  3. 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
  4. 20 Oct, 2011 8 commits
  5. 19 Oct, 2011 9 commits
  6. 18 Oct, 2011 16 commits
    • Murray Cumming's avatar
      1.19.14 · 18f8b6a6
      Murray Cumming authored
      18f8b6a6
    • Murray Cumming's avatar
      Add a simple SQL injection test. · da38817b
      Murray Cumming authored
      * tests/test_selfhosting_sqlinjection.cc: Attempt to do bad things
      that would be possible if our SQL values were not escaped properly
      in the SQL. (libgda takes care of this.)
      * Makefile_tests.am: Mention the new test.
      da38817b
    • Murray Cumming's avatar
      Self hosting test: Check that other tables exist. · 6d1c4843
      Murray Cumming authored
      	* glom/libglom/document/document.[h|cc]: Added get_field_primary_key(),
      	for use by:
      	* tests/test_selfhosting_utils.[h|cc]: Added test_table_exists().
      	* tests/test_selfhosting_new_from_example.cc: Add quick checks that
      	some other tables exist.
      6d1c4843
    • Murray Cumming's avatar
      Test some query functions. · db63ba66
      Murray Cumming authored
      	* tests/test_selfhosting_utils.[h|cc]: Added test_model_expected_size().
      	* tests/test_selfhosting_new_from_example.cc: Test the quick find and
      	the count query.
      db63ba66
    • Murray Cumming's avatar
      Avoid a compiler warning. · 6da30a80
      Murray Cumming authored
      	* glom/libglom/data_structure/glomconversions.cc: format_time():
      	Return a result from the catch block.
      6da30a80
    • Murray Cumming's avatar
      Avoid some copy/pasting of code. · baa0549c
      Murray Cumming authored
      * glom/mode_design/print_layouts/print_layout_toolbar_button.cc:
      * glom/utility_widgets/layouttoolbar.cc:
      * glom/utility_widgets/layouttoolbarbutton.cc: Moved get_icon_path() to:
      * glom/utils_ui.[h|cc]
      baa0549c
    • Murray Cumming's avatar
      Test report contents. · 1db3de45
      Murray Cumming authored
      * glom/libglom/xsl_utils.[h|cc]: transform(): Return the contents,
      not a filepath.
      * glom/libglom/report_builder.[h|cc]: report_build(): return the
      contents, not the path. Add report_build_and_save() to get a temporary
      filepath.
      * glom/mode_data/box_data_manyrecords.cc:
      * glom/frame_glom.cc: Adapted.
      * tests/test_selfhosting_new_then_report.cc: Check that some expected
      text is in the generated HTML.
      1db3de45
    • Murray Cumming's avatar
      Test report building. · eca8c786
      Murray Cumming authored
      * tests/test_selfhosting_new_from_example.cc: Move most code into
      utility functions in:
      * tests/test_selfhosting_utils.[h|cc]:
      * tests/test_selfhosting_new_then_report.cc: Add a new test that also
      generates a HTML report.
      * Makefile_tests: Mention the new files.
      eca8c786
    • Murray Cumming's avatar
      Film Manager example: Change default table. · 4146efc4
      Murray Cumming authored
      * examples/example_film_manager.glom: Make the Scenes table appear first so
      people get a better idea of what this is about - managing production of a
      single film, not managing a collection of films.
      4146efc4
    • Murray Cumming's avatar
      Add a test for the locale problem and for a missing translated date format. · 743ce0db
      Murray Cumming authored
      	* tests/test_glom_date_in_locales.sh: A new test that sets LANG and then tries
      	to start glom with it's date-checking option, to see if any fail.
      	However, this is not run during "make check", or even distributed, because
      	it depends on you having the locales installed and configured.
      743ce0db
    • Murray Cumming's avatar
      Correct the date format in the en_CA locale. · aa15e4b2
      Murray Cumming authored
      	* en_CA.po: Added a translation for the date format, because the default
      	does not show 4-digit years. This avoids the warning at startup, which
      	asks the translator to deal with it.
      	Note that I used YYYY/MM/DD instead of DD/MM/YYY, because a) It is
        apparrently	the official format for Canada, though the other one is still
        common, and b) date parsing failed with DD/MM/YY in this locale.
      aa15e4b2
    • Murray Cumming's avatar
      Add try/catch around all uses of std::locale(""). · 9158ae51
      Murray Cumming authored
      	* glom/libglom/data_structure/glomconversions.cc: Add try/catch with a warning
      	whenever we use std::locale(""), which means the current locale, because that
      	can throw an exception if the locale is not properly configure.
      	* glom/main.cc: Mention that a non-installed or not-properly-configured
      	locale could be the cause of the problem.
      
      	However, I would like to know exactly what it means for a locale to be
      	properly configured.
      9158ae51
    • Murray Cumming's avatar
      Fix typo in previous commit · d2ba3c19
      Murray Cumming authored
      d2ba3c19
    • Murray Cumming's avatar
      Command line: Correct some exit results. · 450e8efc
      Murray Cumming authored
      * glom/main.cc: Use EXIT_FAILURE and EXIT_SUCCESS instead of 0 and -1,
      and use the correct ones.
      450e8efc
    • Murray Cumming's avatar
      libglom: FieldFomatting: Correct some parameter names. · b0b5ad68
      Murray Cumming authored
      * glom/libglom/data_structure/layout/fieldformatting.h: get_choices_related()
      Rename relationship_name to relatioship. It was already correct in the .cc
      file.
      b0b5ad68
    • Murray Cumming's avatar
      Correct the pkg-config file. · 359137ed
      Murray Cumming authored
      	* glom/libglom/glom.pc.in: Depend on libgdamm-5.0, not ligdamm-4.0.
        And depend on libxslt, because we just moved the xslt stuff into libglom.
      359137ed
  7. 17 Oct, 2011 1 commit