1. 14 Dec, 2009 3 commits
  2. 10 Dec, 2009 2 commits
    • Murray Cumming's avatar
      Tests: Validate all examples against the DTD, and correct the DTD. · d6520fbc
      Murray Cumming authored
      * tests/dtd/test_example_sqlite: Renamed to test_file_validation.sh.
      * glom/Makefile_tests.am: Adapted.
      * glom/libglom/document/document.cc: save_before(): Correct the saving
      of group privileges so they are really inside the group nodes. Avoid
      saving unnamed groups, as seen in the example files.
      * glom/glom_document.dtd: Several corrections to fix the validation of
      the example files, though I don't like that DTDs don't seem to give
      us any way to say that the sequence of child elements is irrelevant.
      I don't like enforcing the sequence.
      d6520fbc
    • Murray Cumming's avatar
      Fix distcheck. · c155ba0b
      Murray Cumming authored
      * Makefile.am:
      * Makefile_tests.am: Fix the distcheck by disting the DTD validation
      test script and the .glom file that it uses.
      * glom/libglom/init.cc: Redefine Python's PyDateTime_IMPORT macro,
      to avoid a compiler warning. See http://bugs.python.org/issue7463
      * glom/main.cc: Avoid including Python's datetime.h, to avoid the same
      compiler warning.
      c155ba0b
  3. 09 Dec, 2009 2 commits
    • Murray Cumming's avatar
      Tests: Complete the test_python_execute_func_date test. · 6f260a81
      Murray Cumming authored
      * glom/libglom/python_embed/pygdavalue_conversions.c
      (glom_pygda_value_from_pyobject): Use g_date_new_dmy() so the GDate
      is really completely initialized, avoiding errors about invalid dates.
      * tests/test_python_execute_func_date.cc: Check the return type and
      value, by comparing the python result with the current date.
      Bug is now really fixed #603686. (Andrew Ruthven)
      6f260a81
    • Murray Cumming's avatar
      Fix the crash when calling python functions that return dates. · bb9448a9
      Murray Cumming authored
      * glom/libglom/python_embed/pygdavalue_conversions.c
      (glom_pygda_value_from_pyobject): Call the macro PyDateTime_IMPORT here,
      though it was already called in libglom_init(). I don't know why this
      fixes the crash, but it does. Bug #603686. (Andrew Ruthven)
      bb9448a9
  4. 07 Dec, 2009 2 commits
  5. 04 Dec, 2009 3 commits
    • Murray Cumming's avatar
      Rename some functions to avoid fear of linking to the wrong one. · 89e3581c
      Murray Cumming authored
      * glom/libglom/python_embed/pygdavalue_conversions.[h|cc]:
      pygda_value_from_pyobject(), pygda_value_as_pyobject(): Add a glom_
      prefix so we know we are not using the copy in pygda.
      * glom/python_embed/glom_python.cc:
      * glom/libglom/python_embed/py_glom_record.cc:
      * glom/libglom/python_embed/py_glom_relatedrecord.cc: Adapted.
      89e3581c
    • Murray Cumming's avatar
      Field Definitions: Default value: Fix crash when selecting a date. · fd84aaf5
      Murray Cumming authored
      * glom/utility_widgets/datawidget.cc: offer_field_list(),
      offer_field_layout(), offer_related_record_id_find(): Avoid crashes
      caused by calling set_transient_for() with a null parent window,
      for instance from the field definitions dialog.
      fd84aaf5
    • Murray Cumming's avatar
      Field Definitions: Show default value widget for date fields. · 1f59c217
      Murray Cumming authored
      * glom/utility_widgets/datawidget.cc: Constructor: show the
      hbox_parent widget, so the widgets always show up for the default value
      in the field definitio dialog for date fields. The details view must
      be doing this via a show_all() somewhere.
      1f59c217
  6. 03 Dec, 2009 3 commits
    • Murray Cumming's avatar
      Removed debug output. · 26efd929
      Murray Cumming authored
      26efd929
    • Murray Cumming's avatar
      Related Records layout: Field formatting: Choices: Fix related choices. · ac1f179f
      Murray Cumming authored
      * glom/mode_design/layout/dialog_layout_details.[h|cc]
      * glom/mode_design/layout/dialog_layout_list_related.[h|cc]:
      Add virtual get_fields_table() and use this in
      on_button_field_formatting() so that the formatting dialog shows
      relationships for the to table instead of the parent table, when
      editing formatting for a field in a related records portal.
      Bug noticed by Michael Hasselmann and Andrew Ruthven.
      * glom/mode_design/layout/layout_item_dialogs/dialog_field_layout.c:
      Removed some debug output.
      ac1f179f
    • Murray Cumming's avatar
      Allow use of example documents that mention an unsupported backend. · 255ada87
      Murray Cumming authored
      * glom/application.cc: check_document_hosting_mode_is_supported():
      Don't check the backend if it is an example document because the user
      will choose it when saving anyway.
      255ada87
  7. 17 Nov, 2009 5 commits
    • Murray Cumming's avatar
      tests: dtd: Now passes. · 3e00a4fe
      Murray Cumming authored
      * glom/libglom/document/bakery/document_xml.cc: get_node_document():
      Added commented-out code to write the DOCTYPE declaration, if we ever
      want to specify the PUBLIC DTD idenitifier and URI in each document.
      Let's avoid that for now because we'd have to make sure that it's
      hosted properly.
      * tests/dtd/test_example_sqlite: Do not use --valid because that
      seems to always require a DTD in the document's DOCTYPE declaration.
      --dtdvalid seems to do the same thing already, but with the specified
      DTD.
      3e00a4fe
    • Murray Cumming's avatar
      glom_document.dtd: Mention the xmlns attribute because DTD · e4610590
      Murray Cumming authored
      validation doesn't know about XML namespaces.
      e4610590
    • Murray Cumming's avatar
      Document: Ensure that the xmlns ID is always in saved documents. · 9ada3c2f
      Murray Cumming authored
      * glom/libglom/document/bakery/document_xml.cc: get_node_document():
      Make sure that the xmlns ID is added, even when the root node already
      exists, for instance when opening existing documents.
      
      * examples/example_film_manager.glom:
      * examples/example_lesson_planner.glom:
      * examples/example_music_collection.glom:
      * examples/example_project_manager.glom:
      * examples/example_smallbusiness.glom:
      * examples/sqlite/test_sqlite_music/test_sqlite_music.glom:
      Add the xmnls ID, to help to identify the MIME type of these documents.
      9ada3c2f
    • Murray Cumming's avatar
      Document saving: Remove unncessary empty singular_title nodes. · f691bb29
      Murray Cumming authored
      * glom/libglom/document/document.cc: save_before_translations():
      Do not create empty singular_title nodes.
      * examples/example_smallbusiness.glom: Resaved.
      f691bb29
    • Murray Cumming's avatar
      Partly fix the DTD validation test. · d2e05599
      Murray Cumming authored
      * glom/glom_document.dtd: table: Correct the syntax for the child
      elements, to use ?, instead of | because they are all optional, instead
      of being alternatives for each other.
      Add the print_layouts element.
      * Makefile_tests.am: Change the order so the sometimes-hanging import
      tests are at the end, to make the tests more useful.
      d2e05599
  8. 12 Nov, 2009 1 commit
  9. 06 Nov, 2009 1 commit
  10. 30 Oct, 2009 4 commits
  11. 28 Oct, 2009 4 commits
    • Murray Cumming's avatar
      Trying to ignore unwanted column resize signals. · ec10bf2a
      Murray Cumming authored
      * glom/utility_widgets/db_adddel/db_adddel.[h|cc]:
      Removed unused set_column_width().
      construct_specified_columns_cellrenderer(): Added an InnerIgnore, though
      we already use one in construct_specified_columns().
      on_treeview_column_resized(): Check if we should ignore signals.
      Do not cast an int size to a guint, because it could be -1.
      ec10bf2a
    • Murray Cumming's avatar
      Avoid runtime warnings about 0 size TreeViewColumn. · 91c51937
      Murray Cumming authored
      * glom/utility_widgets/db_adddel/db_adddel.cc: construct_specified_columns(),
      treeview_append_column(): Avoid calling TreeViewColumn::set_fixed_width()
      with a 0 size, avoiding a runtime assertion.
      91c51937
    • Murray Cumming's avatar
      Fix some warnings. · d6faabda
      Murray Cumming authored
      * glom/dialog_existing_or_new.cc: get_service_info(): Replace a 0 with
      (void*)0 to avoid a warning after my change on 2009-10-13.
      * glom/libglom/data_structure/has_title_singular.cc():
      operator==(): Actually use the src parameter.
      d6faabda
    • Murray Cumming's avatar
      Do not mark an empty string for translation. · 05ff8619
      Murray Cumming authored
      * glom/dialog_connection.cc: set_confirm_existing_user_note():
      Do not do _(), fixing bug #599868 (André Klapper).
      05ff8619
  12. 27 Oct, 2009 1 commit
  13. 21 Oct, 2009 1 commit
    • Armin Burgmeier's avatar
      Fixed the Windows build · a1ceaa31
      Armin Burgmeier authored
      2009-10-21  Armin Burgmeier  <armin@arbur.net>
      
      	* Makefile_libglom.am: Link against winsock on Windows.
      
      	* glom/application.cc (constructor): ifdefed out the avahi callbacks
      	setup on Windows.
      
      	* glom/dialog_existing_or_new.cc (constructor): ifdefed out the code
      	that expands the network item on Windows (because it doesn't exist
      	there).
      
      	* glom/libglom/connectionpool.h:
      	* glom/libglom/connectionpool.cc: ifdefed out the avahi callback setup
      	function, moved pgwin32_is_admin to main.cc.
      
      	* glom/main.cc: Moved pgwin32_is_admin from connectionpool.cc.
      
      	* glom/libglom/spawn_with_feedback.cc: Added <glibmm/fileutils.h>
      	include, required for the Windows build.
      
      	* glom/mode_design/print_layouts/print_layout_toolbar_button.cc:
      	* glom/utility_widgets/layouttoolbar.cc:
      	* glom/utility_widgets/layouttoolbarbutton.cc:
      	* glom/xsl_utils.cc: Fixed the construction to path files
      	relative to the executable on Windows: Glib::build_filename does take
      	only two arguments, not three.
      
      	* win32/build-installer:
      	* win32/glom.iss.in: Updated.
      a1ceaa31
  14. 19 Oct, 2009 4 commits
  15. 16 Oct, 2009 4 commits