1. 16 Apr, 2010 1 commit
    • Murray Cumming's avatar
      Use mm-common for optional compiler warnings and to build libglom docs. · 273b80f5
      Murray Cumming authored
          * configure.ac: Use mm-common, removing macros/dk-warn.m4.
      * docs/libglom_reference/Doxyfile.in:
      * docs/libglom_reference/doxygen_to_devhelp.xsl:
      * docs/libglom_reference/Makefile.am: Generate libglom documentation
          properly using build stuff copied from gtkmm.
      * docs/pyglom_reference/Makefile.am: A silly little initial attempt to
          have generated html for the glom python module, using pydoc.
  2. 15 Apr, 2010 2 commits
    • Murray Cumming's avatar
      Python field calculation: Fix a crash. · 2c15d6b2
      Murray Cumming authored
      	* glom/libglom/python_embed/pygdavalue_conversions.cc:
      	glom_pygda_value_as_boost_pyobject(): Add a PyDateTimeAPI call, as already
      	done in glom_pygda_value_from_pyobject(), to prevent a crash (and valgrind
      	warning about 0 dereference) when using this (silly, wrong) field calculation,
      	though I can't reproduce it in a unit test:
      	import datetime
        return (datetime.date.today() - record["date_of_birth"]).days / 365
    • Murray Cumming's avatar
      Python module: Improve API documentation. · 78f73328
      Murray Cumming authored
      * glom/python_embed/python_module/py_glom_module.cc: Added some options and
      text for docstrings, to improve the pydoc -w output.
  3. 14 Apr, 2010 5 commits
  4. 13 Apr, 2010 1 commit
    • Murray Cumming's avatar
      Remove useless translatable strings. · ce234500
      Murray Cumming authored
      	* glom/glom_developer.glade: Remove placeholder text from labels that will
      	actually have their text set at runtime, so there's need actual need to have
      	it in the glade file. They were even marked as translatable.
      	Bug #615656 (Gianluca Ferri)
  5. 12 Apr, 2010 8 commits
    • Murray Cumming's avatar
      Python calculations and scripts: Fix regression in use of date and time fields. · 05669fb9
      Murray Cumming authored
      * glom/libglom/python_embed/py_glom_record.[h|cc]:
      Change PyGlomRecord_SetFields() to a member set_fields() method, and making
      more of the class private, finishing our conversion to boost::python.
      * glom/libglom/python_embed/py_glom_related.[h|cc]:
      Change PyGlomRelated_SetRelationships() to a set_relationships methods.
      * glom/libglom/python_embed/py_glom_relatedrecord.[h|cc]:
      Changed PyGlomRelatedRecord_SetRelationship() to a set_relationship() method.
      * glom/python_embed/glom_python.cc: glom_pygda_value_from_pyobject():
        Handle date, time, timestamp, geometric point values, whose code had been
        commented out since the port to boost::python.
      This fixes the test added in the previous commit, so glom calculations and
      scripts can again (it broke in unstable Glom 1.13) use date and time field
      values from the record.
    • Murray Cumming's avatar
      Added test showing problem with date fields in python calculations. · 4d472d1a
      Murray Cumming authored
      * tests/test_python_execute_func_date.cc: Added a test of dates as input
      values for record fields. This currently fails with this error from python,
      so I need to fix it in Glom:
      AttributeError: 'NoneType' object has no attribute 'year'
    • Daniel Elstner's avatar
      Further clean up AX_BOOST_PYTHON_MURRAYC · 1384e898
      Daniel Elstner authored
      * macros/ax_boost_python_murrayc.m4: Simplify the logic of the checks
      and clean up the Bourne shell code.  Also, abort with a fatal error
      if the boost::python headers or library could not be found.
    • Andre Klapper's avatar
    • Murray Cumming's avatar
      Fix glade loading. · 395a2420
      Murray Cumming authored
      * glom/glade_utils.h: get_glade_widget_derived_with_warning(): Fix silly
      but fatal typo.
    • Murray Cumming's avatar
      Simplify setting of the icon for windows. · 49221aeb
      Murray Cumming authored
      * glom/glade_utils.h: get_glade_widget_derived_with_warning():
      Call set_icon_name() on windows.
      * Several *.cc files: Don't bother calling set_icon_name() after calling
    • Murray Cumming's avatar
      Slight AX_BOOST_PYTHON_MURRAYC() cleanup. · 1ece63f5
      Murray Cumming authored
      * macros/ax_boost_python_murrayc.m4: Add necessary quotes, avoid ==,
          and use AC_LANG_PUSH/AC_LANG_POP instead of deprecated
          AC_LANG_SAVE/AC_LANG_CPLUSPLUS/AC_LANG_RESTORE. Noticed by Daniel Elstner,
          though we don't know if this solves any known problems yet.
    • Murray Cumming's avatar
      Provide context for translations. · 7555d447
      Murray Cumming authored
      	* glom/application.cc:
      	* glom/frame_glom.cc:
      	* glom/mode_design/users/dialog_users_list.cc: Use the new (in glib 2.16)
          C_() macro to provide context for bare uses of "User" and "Developer",
          providing some explanation and allowing translators to use translate them
          differently, as may be required by some languages.
          Fixes bug #606931 (Urmas, André Klapper)
  6. 11 Apr, 2010 2 commits
  7. 10 Apr, 2010 10 commits
  8. 09 Apr, 2010 8 commits
  9. 08 Apr, 2010 3 commits
    • Daniel Borgmann's avatar
      Use buttonbox for details view. · 1629b976
      Daniel Borgmann authored
      * glom/mode_data/box_data_details.cc:
      * glom/mode_data/box_data_details.h:
      Use HButtonBox instead of HBox.
    • Daniel Borgmann's avatar
      Use button box for adddel widgets. · d18d8575
      Daniel Borgmann authored
      * glom/utility_widgets/adddel/adddel_withbuttons.cc:
      * glom/utility_widgets/adddel/adddel_withbuttons.h:
      * glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc:
      * glom/utility_widgets/db_adddel/db_adddel_withbuttons.h:
      Use ButtonBox instead of HBox.
    • Daniel Borgmann's avatar
      Use button box for listview buttons. · b7bd0981
      Daniel Borgmann authored
      * glom/utility_widgets/db_adddel/db_adddel_withbuttons.cc:
      * glom/utility_widgets/db_adddel/db_adddel_withbuttons.h:
      Use ButtonBox instead of HBox to make buttons homogenous. Also change
      button order to match order used everywhere else (Add/Delete/Open).