1. 25 Feb, 2016 1 commit
  2. 09 Feb, 2016 1 commit
  3. 06 Feb, 2016 1 commit
  4. 05 Feb, 2016 1 commit
    • Murray Cumming's avatar
      ImageGlom: Use std::unique_ptr<> instead of naked new. · e542cfff
      Murray Cumming authored
      I am not very happy with passing the raw pointer to gtkmm's
      attach_to_widget(), but that seems to be the normal use of
      unique_ptr<>::operator*() and unique_ptr<>::get(),
      as long as we don't expect the receiving API to take any
      ownership.
      e542cfff
  5. 07 Jan, 2016 2 commits
  6. 05 Jan, 2016 1 commit
    • Murray Cumming's avatar
      Add and use find_exists(). · 792cc2ea
      Murray Cumming authored
      To replace lengthy use of
      std::find(container.begin(), container.end(), element) != container.end()).
      
      It looks like something like this will be in the standard C++ library
      at some point, but I don't want to wait.
      792cc2ea
  7. 18 Sep, 2015 1 commit
  8. 21 Aug, 2015 1 commit
  9. 07 Jul, 2015 1 commit
    • Murray Cumming's avatar
      C++11: range-based for loops: Don't get the container separately. · 12453ef5
      Murray Cumming authored
      Don't use an intermediate variable to get the container.
      Range-based for loops only evaluate the second part once so this is
      fine. This simplifies code by not making us think about whether the
      variable is used later in the method.
      
      This is only useful with containers that don't need to be
      const-iterated. We can const_cast<> the container, but that is
      lengthy and involves mentining the type.
      12453ef5
  10. 06 Jul, 2015 2 commits
  11. 03 Jul, 2015 1 commit
  12. 02 Jul, 2015 2 commits
  13. 01 Jul, 2015 1 commit
  14. 30 Jun, 2015 1 commit
  15. 21 Nov, 2013 1 commit
  16. 29 Oct, 2013 1 commit
  17. 21 Oct, 2013 1 commit
  18. 25 Sep, 2013 4 commits
  19. 23 Sep, 2013 3 commits
  20. 22 Jul, 2013 1 commit
  21. 11 Mar, 2013 3 commits
  22. 12 Apr, 2012 1 commit
  23. 11 Apr, 2012 1 commit
  24. 14 Mar, 2012 1 commit
    • Murray Cumming's avatar
      Make sure that get_appwindow() overrides are const. · 6f234d74
      Murray Cumming authored
      	* glom/mode_data/buttonglom.[h|cc]:
      	* glom/mode_data/datawidget/checkbutton.[h|cc]:
      	* glom/mode_data/datawidget/combo.[h|cc]:
      	* glom/mode_data/datawidget/combo_as_radio_buttons.[h|cc]:
      	* glom/mode_data/datawidget/datawidget.[h|cc]:
      	* glom/mode_data/datawidget/entry.[h|cc]:
      	* glom/mode_data/datawidget/label.[h|cc]:
      	* glom/mode_data/datawidget/textview.[h|cc]:
      	* glom/utility_widgets/imageglom.[h|cc]:
      	* glom/utility_widgets/notebookglom.[h|cc]: get_appwindow(): This should
      	be const because the pure virtual function (that it is meant to override)
      	is const.
      	This fixes warnings found by clang++.
      6f234d74
  25. 13 Feb, 2012 2 commits
  26. 04 Nov, 2011 1 commit
    • 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.
      daed2f59
  27. 02 Nov, 2011 1 commit
    • 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
  28. 25 Oct, 2011 1 commit
    • Murray Cumming's avatar
      Change #includes for the latest glibmm. · a9513ff7
      Murray Cumming authored
      Add individual includes instead of general giomm.h, glibmm.h or gtkmm.h
      includes.
      Among other things, this might let us avoid the annoying warning about
      deprecated GThread functions.
      a9513ff7
  29. 24 Oct, 2011 1 commit