1. 24 Oct, 2018 1 commit
  2. 14 Oct, 2018 1 commit
    • Daniel Boles's avatar
      tests/glibmm_ustring_format: Test output, iomanips · a485da17
      Daniel Boles authored
      We only tested here whether single arguments got formatted without
      throwing exceptions, but not whether they got formatted into the
      expected output or combinations of multiple types and I/O manipulators.
      
      This adds a test for that, so we at least have something to ensure that
      things are working correctly, e.g. if refactoring format() as I just did
      a485da17
  3. 31 Aug, 2018 1 commit
    • Kjell Ahlstedt's avatar
      Avoid compiler warnings from function pointer conversions · af768ca0
      Kjell Ahlstedt authored
      gcc8 -Wextra prints a warning when a single reinterpret_cast is used for
      conversion between different types of function pointers. The previous fix
      with a union in Glib::bitwise_equivalent_cast<>() is not standard C++.
      Rename the function to Glib::function_pointer_cast<>(), and use two
      reinterpret_casts as recommended in gcc's documentation.
      
      * glib/src/optiongroup.ccg: Use a reinterpret_cast to convert from
      a function pointer to void*. That's possible now. It's "conditionally
      supported", starting with C++11.
      
      See https://github.com/libsigcplusplus/libsigcplusplus/issues/8
      af768ca0
  4. 17 Jul, 2018 2 commits
  5. 13 Jul, 2018 1 commit
  6. 22 Apr, 2018 1 commit
  7. 14 Nov, 2017 1 commit
  8. 30 Aug, 2017 1 commit
  9. 16 Aug, 2017 1 commit
    • Kjell Ahlstedt's avatar
      Glib::Variant: Improved support for D-Bus object paths and signatures · 94ceeee9
      Kjell Ahlstedt authored
      * glib/glibmm/filelist.am: Add variantdbusstring.h and variantdbusstring.cc.
      * glib/glibmm/variantdbusstring.[cc|h]: New files. String classes meant
      only for Variants with D-Bus object paths or D-Bus signatures.
      * glib/src/variant.[ccg|hg]: Add specializations for
      Variant<Glib::DBusObjectPathString>, Variant<Glib::DBusSignatureString>
      and Variant<std::vector<Glib::DBusObjectPathString>>.
      * glib/src/varianttype.[ccg|hg]: Add VARIANT_TYPE_OBJECT_PATH_ARRAY.
      * tests/glibmm_variant/main.cc: Add test_object_path().
      
      Make it possible to create a composite Variant containing variant type
      o (D-Bus object path) or g (D-Bus signature). Bug 785700
      94ceeee9
  10. 03 Jul, 2017 2 commits
  11. 26 May, 2017 1 commit
  12. 26 Apr, 2017 1 commit
  13. 23 Apr, 2017 1 commit
  14. 18 Apr, 2017 2 commits
  15. 15 Apr, 2017 1 commit
  16. 11 Apr, 2017 1 commit
  17. 09 Apr, 2017 2 commits
  18. 07 Apr, 2017 7 commits
  19. 06 Apr, 2017 1 commit
  20. 17 Mar, 2017 1 commit
  21. 15 Mar, 2017 1 commit
    • Krzysztof Piecuch's avatar
      Added ustring::make_valid() which fixes non-UTF8 strings. · 0797bf29
      Krzysztof Piecuch authored
      make_valid replaces all non-UTF8 characters with replacement
      character (U+FFFD). Allows manipulating with ustring after you find
      out by ustring::validate() that it's not an UTF-8 string and you
      need to rescue it somehow.
      
      This wraps g_utf8_make_valid().
      
      Bug #780075
      0797bf29
  22. 06 Mar, 2017 1 commit
  23. 12 Dec, 2016 3 commits
  24. 21 Nov, 2016 1 commit
    • Kjell Ahlstedt's avatar
      Add tests/giomm_stream_vfuncs · 4aff300e
      Kjell Ahlstedt authored
      * tests/Makefile.am: Add giomm_stream_vfuncs.
      * tests/giomm_stream_vfuncs/main.cc: New file.
      An updated version of a patch by Krzysztof Kosiński <tweenk.pl@gmail.com>
      Bug #572471
      4aff300e
  25. 14 Nov, 2016 1 commit
  26. 11 Nov, 2016 1 commit
    • Murray Cumming's avatar
      Try to disable -Wunused-function for the glibmm_interface_move test. · 732df7d9
      Murray Cumming authored
      To deal with this clang warning when building with --enable-warnings=fatal.
      TODO: However, this doesn't actually seem to disable the error.
      
      glibmm_interface_move/main.cc:9:1: error: unused function 'glib_autoptr_cleanup_TestIface' [-Werror,-Wunused-function]
      G_DECLARE_INTERFACE(TestIface, test_Iface, TEST, IFACE, GObject)
      ^
      /opt/gnome/include/glib-2.0/gobject/gtype.h:1565:3: note: expanded from macro 'G_DECLARE_INTERFACE'
        _GLIB_DEFINE_AUTOPTR_CHAINUP (ModuleObjName, PrerequisiteName)                                           \
        ^
      /opt/gnome/include/glib-2.0/glib/gmacros.h:421:22: note: expanded from macro '_GLIB_DEFINE_AUTOPTR_CHAINUP'
        static inline void _GLIB_AUTOPTR_FUNC_NAME(ModuleObjName) (ModuleObjName **_ptr) {                     \
                           ^
      /opt/gnome/include/glib-2.0/glib/gmacros.h:415:43: note: expanded from macro '_GLIB_AUTOPTR_FUNC_NAME'
                                                ^
      <scratch space>:224:1: note: expanded from here
      glib_autoptr_cleanup_TestIface
      732df7d9
  27. 27 Apr, 2016 1 commit
  28. 31 Mar, 2016 1 commit