summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Gio: Use _WRAP_METHOD(..., ignore_deprecations)Kjell Ahlstedt2021-11-264-44/+8
|
* gmmproc: Add "ignore_deprecations" argument in _WRAP_METHOD()Kjell Ahlstedt2021-11-263-8/+20
| | | | | Makes it easier to suppress deprecation warnings when a C method has been deprecated, but the corresponding C++ method shall not (yet) be deprecated.
* Gio::SocketClient, TlsClientConnection: Ignore some deprecationsKjell Ahlstedt2021-11-244-7/+57
| | | | | | | g_socket_client_[set,get]_tls_validation_flags() and g_tls_client_connection_[set,get]_validation_flags() are deprecated in glib 2.72. They can't be deprecated in glibmm 2.70. Ignore the deprecations, so it will still be possible to compile with warnings=fatal.
* Build: Support VS2022 buildsChun-wei Fan2021-11-092-2/+7
| | | | Make these builds distinct from the Visual Studio 2019 builds.
* 2.70.02.70.0Kjell Ahlstedt2021-10-063-2/+56
|
* Glib::Binding: Fix return type from dup_source() and dup_target()Kjell Ahlstedt2021-10-051-5/+5
| | | | Change from Glib::RefPtr<Glib::Object> to Glib::RefPtr<Glib::ObjectBase>.
* Glib, Gio: Add some methods for glibmm 2.70Kjell Ahlstedt2021-10-0513-122/+90
| | | | | | | | | | | | | | | | | | * configure.ac: * meson.build: Require glib-2.0 >= 2.69.1. * glib/src/binding.[ccg|hg]: Add dup_source(), dup_target(), Deprecate get_source(), get_target(). * glib/src/spawn.[ccg|hg]: Change parameter name, exit_status to wait_status. * glib/src/timezone.[ccg|hg]: Add operator bool(), create_identifier(). Deprecate create(). * gio/src/fileinfo.hg: Add get/set_access_date(), get/set_creation_date(). * gio/src/notification.hg: Add set_category(). * gio/src/tlscertificate.hg: Add property/get_not_valid_before(), property/get_not_valid_after(), property/get_subject_name(), property/get_issuer_name(). * gio/src/tlsconnection.hg: Add enum Gio::TlsProtocolVersion, property/get_protocol_version(), property/get_ciphersuite_name(). * tools/m4/convert_gio.m4: Add conversion for enum TlsProtocolVersion.
* Glib, Gio: Regenerate docs.xml and .defs filesKjell Ahlstedt2021-10-0513-881/+4423
| | | | | using gtk files from glib 2.70.0. And update gio_docs_override.xml and glib_extra_objects.defs.
* CI: Build with g++-11 instead of g++-9Kjell Ahlstedt2021-10-041-8/+8
| | | | g++-9 is not available in debian:testing any more.
* CI: Switching to debian:testingKjell Ahlstedt2021-10-041-1/+1
| | | | See pangomm#13 and pangomm!23.
* Glib::wrap_register_init(): Don't use g_quark_from_static_string()Kjell Ahlstedt2021-10-041-2/+2
| | | | | | | Replace it by g_quark_from_string(). g_quark_from_static_string() shall not be used, if glibmm (but not glib) is loaded and unloaded several times. Fixes #96
* Declare some copy assignment operators deleted (=delete)Kjell Ahlstedt2021-08-272-7/+8
| | | | | | | | Avoid warnings from the clang++ compiler. It's deprecated in C++ to implicitly declare a copy constructor, if there is a user-defined copy assignment operator. Instead of declaring copy assignment operators private without implementation, declare them deleted.
* CI: Don't rebuild libsigc++ if it can be pulled from the cacheKjell Ahlstedt2021-08-251-11/+29
|
* CI: Build libsigc++ only onceKjell Ahlstedt2021-08-221-74/+124
| | | | and publish reference docs at gnome.pages.gitlab.gnome.org/glibmm.
* .gitlab-ci.yml: Add dependency g++-10Kjell Ahlstedt2021-08-171-0/+1
|
* meson.build: Check if Perl is required for building documentationKjell Ahlstedt2021-08-172-3/+16
| | | | | | New versions of mm-common use the Python scripts doc_postprocess.py and doc_install.py instead of the Perl scripts doc-postprocess.pl and doc-install.pl when documentation is built.
* Use GLib from the main branch in subprojectKjell Ahlstedt2021-07-311-1/+1
|
* Gio::AppInfo::get_all(): Use a local TypeTraits in ListHandlerKjell Ahlstedt2021-07-292-10/+7
| | | | | | | Instead of a specialization of Glib::Container_Helpers::TypeTraits for Glib::RefPtr<Gio::AppInfo>, add and use struct TypeTraits_AppInfo, local in gio/src/appinfo.ccg and appinfo.cc. Modifies the issue #94 fix.
* Gio::AppInfo::get_all(): Use Glib::wrap_auto_interface()Kjell Ahlstedt2021-07-261-0/+32
| | | | | | | | | | | | Applies also to get_all_for_type(). Make a complete specialization of Glib::Container_Helpers::TypeTraits for Glib::RefPtr<Gio::AppInfo>, calling Glib::wrap(GAppInfo*, bool) which uses Glib::wrap_auto_interface(). The partial specialization in containerhandle_shared.h calls Glib::wrap_auto(), which is not acceptable if the GAppInfo object does not already have a wrapper, and its class type has been wrapped in a C++ class (e.g. GWin32AppInfo or GOsxAppInfo). Fixes #94
* handle-built-files.py: Specify file encoding on generated filesKjell Ahlstedt2021-07-161-5/+2
| | | | | The default file encoding is platform dependent in Python. Better specify which encoding is preferred.
* Gio::ListModel::get_object(): Don't try to cast to Glib::ObjectKjell Ahlstedt2021-07-151-0/+4
| | | | | | | Gio::ListModel::get_object() returns Glib::RefPtr<Glib::ObjectBase>. Don't try to dynamic_cast it to Glib::Object. It would fail if the object has been constructed as an interface, and e.g. has a Gio::File wrapper. Fixes #93
* Merge branch 'talisein-file-enumerator-leak' into 'master'Kjell Ahlstedt2021-07-151-2/+2
|\ | | | | | | | | fileenumerator.hg: Remove refreturn to avoid memory leak See merge request GNOME/glibmm!53
| * fileenumerator.hg: Remove refreturn to avoid memory leaktalisein2021-07-101-2/+2
|/
* Update gio_docs_override.xmlKjell Ahlstedt2021-06-041-2/+13
|
* gmmproc, DocsParser.pm: 2nd improve the handling of gi-docgen syntaxKjell Ahlstedt2021-06-041-18/+15
|
* gmmproc, DocsParser.pm: Improve the handling of gi-docgen syntaxKjell Ahlstedt2021-06-011-24/+65
|
* Glib::ustring: Remove extraneous GLIBMM_APIKjell Ahlstedt2021-05-311-2/+2
| | | | | Deleted methods shall not be decorated with GLIBMM_API. Fixes #92
* gmmproc, DocsParser.pm: Handle gi-docgen syntax in documentationKjell Ahlstedt2021-05-251-11/+73
| | | | | | | | | | gtk4 has started using gi-docgen instead of gtk-doc. It has a different syntax for referring to methods, signals, properties and other stuff in the documentation. gmmproc does not handle the gi-docgen syntax perfectly when it converts to Doxygen syntax and C++ names. It has never handled gtk-doc syntax perfectly, either. Hopefully it's good enough in most cases.
* Add Glib::Environ and tests/glibmm_environKjell Ahlstedt2021-05-238-0/+206
| | | | Fixes #89
* Glib::Timer: Add resume() and is_active()Kjell Ahlstedt2021-05-232-1/+29
| | | | Fixes #87
* 2.68.12.68.1Kjell Ahlstedt2021-05-203-2/+29
|
* Add dependencies to Doxygen tag files in subprojectsKjell Ahlstedt2021-05-182-1/+14
| | | | | Doxygen in a main project shall not be called before tag files have been created or updated in subprojects.
* Fix build as subproject without building documentationKjell Ahlstedt2021-05-152-31/+37
| | | | | | | | | * meson.build: If mm-common-get is not found in maintainer-mode with 'required: false', try with 'required: true'. Don't try to use tag_file, if documentation is not built. * docs/reference/meson.build: Don't use variables from modules that don't define doxytagfile. These are subprojects that don't build their documentation.
* Merge branch 'std-string-msvc-fixes' into 'master'Chun-wei Fan2021-05-1410-276/+275
|\ | | | | | | | | | | | | Export classes selectively (fix issue #90) Closes #90 See merge request GNOME/glibmm!51
| * Clean up Visual Studio build filesChun-wei Fan2021-05-072-3/+2
| | | | | | | | | | | | Stop ignoring warnings C4251, C4273 and C4275 and add /EHsc in the compiler flags, so that we know if we are inadvertedly tying ourselves too closely to a Visual Studio compiler/STL version
| * Don't mark the Glib::Source class with GLIBMM_APIChun-wei Fan2021-05-073-72/+72
| | | | | | | | | | | | | | Instead, mark the individual members with GLIBMM_API so that we avoid having the code tied to a particular STL and compiler version. Update the classes that derive from Glib::Source accordingly as well
| * error.h Avoid exporting class deriving frm std::exceptionChun-wei Fan2021-05-072-24/+24
| | | | | | | | | | | | | | | | | | This will avoid having the ABI tied to a particular STL and compiler version, and so will eliminate C4275 compiler warnings when building the code. Also update gerror.m4 so that it will generate code deriving from Glib::Error with the export macro markings with the member functions, so that things continue to build properly
| * fileattributeinfo.hg: Avoid exporting classes with std::string membersChun-wei Fan2021-05-071-10/+10
| | | | | | | | | | | | | | ...and templates that inherit std::string. This will help us to also eliminate C4251 warnings from code that use thid class and related items, and avoid ABI compatibility issues when building code that link and run aginst glibmm on Visual Studio builds.
| * variantdbusstring.h: Don't mark classes with GLIBMM_APIChun-wei Fan2021-05-071-2/+2
| | | | | | | | | | It's actually not necessary here, and it will cause issues with the previous commit
| * ustring.h: Avoid exporting classes with std::string membersChun-wei Fan2021-05-071-165/+165
|/ | | | | | | ...and templates that inherit std::string. This will help us to also eliminate C4251 warnings from code that use the ustring class and related items, and avoid ABI compatibility issues when building code that link and run aginst glibmm on Visual Studio builds.
* Glib::PatternSpec: Ignore deprecation of g_pattern_match()Kjell Ahlstedt2021-05-051-0/+4
|
* Subprojects can use meson.add_dist_script() if meson.version() >= 0.58.0Kjell Ahlstedt2021-05-055-16/+18
| | | | | | | | | | | * meson.build: * docs/reference/meson.build: * gio/giomm/meson.build: * glib/glibmm/meson.build: Call add_dist_script() in a subproject, if meson.version() >= 0.58.0. * tools/build_scripts/handle-built-files.py: Use MESON_PROJECT_DIST_ROOT if it exists, else MESON_DIST_ROOT. It exists if meson.version() >= 0.58.0.
* Meson build: Make quiet installations possibleKjell Ahlstedt2021-04-191-1/+3
| | | | | | * tools/build_scripts/handle-built-files.py: Don't print names of installed files if environment variable MESON_INSTALL_QUIET is set. It is set by "meson install --quiet" in Meson 0.54.0 and newer.
* tests/glibmm_ustring_compare: Fix so it works for C++20Kjell Ahlstedt2021-04-112-28/+39
| | | | | | | Make 3 tests, where the 2 new tests check that the disallowed comparisons between std::string and Glib::ustring don't compile. The new tests are added only in Meson builds (ninja test). See MR !50
* Merge branch 'master' into 'master'Kjell Ahlstedt2021-04-092-22/+22
|\ | | | | | | | | Variant: Fix so it works with C++20 See merge request GNOME/glibmm!50
| * Variant: Fix so it works with C++20Magne Oestlyngen2021-04-062-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C++20 changed some aspects of templates that broke variant.h on some compilers (GCC 11). Ref: https://wg21.cmeerw.net/cwg/issue2237 template<class T> struct A { A<T>(); // ok pre-C++20, now incorrect // A(); // correct for all versions }; This commit removes the "simple-template-id" from both the default constructor (no args) and the explicit constructor (has args), even though only the default constructor currently gives error on GCC 11. Since both versions are wrong according to the issue referred to above it is expected that GCC (and possibly other compilers) will be updated to fail on both cases in the future.
* | Meson build: No implicit_include_directoriesKjell Ahlstedt2021-04-083-0/+4
|/
* Meson build: No implicit_include_directoriesKjell Ahlstedt2021-03-2641-38/+43
| | | | | | | It shall not be possible to find a glibmm header file with #include <xxx.h> instead of #include <glibmm/xxx.h>. Not fully fixed until https://github.com/mesonbuild/meson/issues/8562 has been fixed.
* Add tools/defs_gen/enumextract.pyKjell Ahlstedt2021-03-174-1/+472
| | | | | A Python script that can replace the Perl script tools/enum.pl. Why? Just because I've got fond of Python.
* Meson build: Make it possible to use glibmm as a subprojectKjell Ahlstedt2021-03-1211-19/+117
| | | | glib and sigc++ can be subprojects of glibmm.