| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The default value will be changed in future Meson releases.
Don't use deprecated python3.path() and execute(..., gui_app: ...).
|
| |
|
|
|
|
| |
glib and sigc++ can be subprojects of glibmm.
|
|
|
|
|
|
| |
Multithreaded examples and tests depend on 'threads'.
I noticed this when I started experimenting with subprojects.
Strange that it was not reported as a missing dependency long ago.
|
|
|
|
|
| |
Deprecated GLIBMM and GIOMM API are disabled when example programs and test
programs are built with Autotools. Do the same when building with Meson.
|
|
|
|
|
| |
std::mem_fun() and std::unary() have been removed from C++17, so port
away from using these.
|
|
|
|
|
| |
These use *nix items in the code, so they won't build nor run for
Windows unless they are ported.
|
|
|
|
|
|
| |
glibmm can be built with either Autotools or Meson.
See MR !27
|
|
|
|
|
|
|
|
| |
* examples/network/resolver.cc: Don't include config.h. It's not used.
* glib/glibmm/ustring.cc: Check if GLIBMM_SIZEOF_WCHAR_T is defined.
* tools/generate_wrap_init.pl.in:
* tools/gmmproc.in: Change '\@' to '\ @'. Meson's configure_file()
removes a backslash immediately before an at-sign.
|
|
|
|
|
| |
A few implicit conversions in tests/ have been kept. They are probably
deliberate, to test implicit conversion. Inspired by issue #65
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GTimeVal has been deprecated in glib. Remove its wrapping in glibmm.
* examples/dbus/server_without_bus.cc:
* examples/dbus/session_bus_service.cc: Replace TimeVal by DateTime.
* gio/src/fileinfo.[ccg|hg]: Remove [set_]modification_time().
Add set/get_modification_date_time().
* glib/glibmm.h:
* glib/glibmm/filelist.am: Remove timeval.
* glib/glibmm/timeval.[cc|h]: Removed files.
* glib/src/date.[ccg|hg]: Remove set_time(const GTimeVal& timeval).
* glib/src/datetime.[ccg|hg]: Remove create_now_local/utc(const TimeVal& tv)
and to_timeval(). Add create_from_iso8601(), format_iso8601() and
operator bool().
* tools/m4/convert_glib.m4:
* tools/m4/convert_gio.m4: Remove conversions for GTimeVal.
|
|
|
|
|
|
|
|
|
| |
When an object is created by GtkBuilder, the GObject-derived C object is
created and its properties set before there is a C++ wrapper to store
the property values in. Glib::custom_set_property_callback() stores
property values in a data structure reached via a GQuark in the object.
PropertyBase::lookup_property() copies those property values to the
PropertyBase objects when the C++ wrapper is created.
|
|
|
|
|
|
|
|
|
|
| |
* examples/keyfile/main.cc:
* gio/src/desktopappinfo.hg: Store KeyFile in a RefPtr.
* glib/src/keyfile.[ccg|hg]: Replace _CLASS_GENERIC by _CLASS_OPAQUE_REFCOUNTED.
Remove handcoded methods that are now generated by gmmproc.
* tools/m4/convert_glib.m4: Update conversion for KeyFile.
GKeyFile is refcounted since 2009.
|
|
|
|
|
|
|
| |
IN and OUT can be preprocessor macros. IO_ is added to the enumerator names.
E.g. Glib::IOCondition::IN is replaced by Glib::IOCondition::IO_IN.
These enumerator names will be the same as before we used enum class.
Bug 786717
|
|
|
|
| |
Bug 786824
|
|
|
|
| |
It's changed from a plain enum to a scoped enum.
|
|
|
|
|
|
|
| |
Make specializations of SignalProxy<> and SignalProxyDetailed<> for signal
handlers that return void. The specializations have no connect_notify()
method, and the 'after' parameter in the connect() method has a default
value only in the specializations. Bug 126213
|
| |
|
|
|
|
| |
Bug 86864
|
|
|
|
| |
Instead of Glib::RefPtr<>::cast_dynamic().
|
|
|
|
|
|
|
| |
Remove the OptionGroup& parameter in on_pre_parse(), on_post_parse() and
on_error(). It's unnecessary. It's always identical to *this.
Add a const Error& parameter to on_error(). It's an input parameter with
information about an error that has occurred in OptionContext::parse().
|
|
|
|
|
|
| |
Using Glib::ListHandler<>::list_to_array() and
Glib::ListHandler<>::list_to_vector() instead, and only in the
implementation instead of in the API.
|
|
|
|
| |
Noticed by cppcheck.
|
|
|
|
| |
Noticed by cppcheck.
|
|
|
|
|
|
| |
When the Thread classes were removed, the dispatcher examples were removed
from the list of check_PROGRAMS. I suppose that was a mistake. The dispatcher
examples were not removed. They still work. They use std::thread.
|
| |
|
|
|
|
|
|
|
| |
This useful warning seems to be new in g++ 6:
thread/dispatcher2.cc:88:1: error: ‘{anonymous}::ThreadTimer::~ThreadTimer()’ defined but not used [-Werror=unused-function]
ThreadTimer::~ThreadTimer()
|
|
|
|
| |
The older libsigc++ syntax is deprecated.
|
| |
|
|
|
|
|
|
|
|
|
| |
sigc::bind<1>() is meant to bind a value for the second argument,
which makes no sense for a method with 1 parameter.
sigc::bind() seems fine.
I found this while working in the sigc3 branch, using libsigc++-3.0,
which is less forgiving of this error.
|
|
|
|
|
|
| |
Putting the comment before the code, instead of to the right,
because clang-format can not (and could not) know which comments
are meant to be aligned. I prefer this anyway.
|
|
|
|
|
| |
I need to make a subsequent commit to fix the now-unaligned
trailing comments.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
We need to include <memory> for unique_* on Visual Studio, and for Visual
Studio 2013 builds, we need to ensure that glibmmconfig.h is included so
that noexcept is supported.
https://bugzilla.gnome.org/show_bug.cgi?id=760612
|
| |
|
|
|
|
|
|
|
| |
* examples/network/socket-client.cc:
* examples/network/socket-server.cc: Store the thread pointer in a
std::unique_ptr. Then the thread is always joined and deleted. Stop the thread
immediately in case of error, or if the user requests end of transmission.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/thread/threadpool.cc: If --disable-deprecated-api, just print a
message and exit.
* gio/src/<several>.hg: Add _CONFIGINCLUDE(giommconfig.h).
* gio/src/menuitem.ccg: Add a missing _DEPRECATE_IFDEF_START/_END pair.
* glib/glibmm/sarray.h:
* glib/glibmm/threadpool.[cc|h]: #include <glibmmconfig.h> before
ifndef GLIBMM_DISABLE_DEPRECATED.
* glib/src/filelist.am: Remove glibmm_files_deprecated_hg. List deprecated
files in glibmm_files_any_hg.
The config file must be included before #ifndef xxx_DISABLE_DEPRECATED both
in the .h file and in the .cc file, or else deprecated API is not properly
disabled by --disable-deprecated-api.
|
|
|
|
|
|
| |
Because we should encourage the use of 2 different thread APIs at
the same time. Maybe std::async() does what a thread pool would do?
If so, we should improve the deprecation documentation.
|
|
|
|
|
| |
Instead of using a lambda. As suggested by Kjell Ahlstedt:
https://bugzilla.gnome.org/show_bug.cgi?id=757674#c10
|
|
|
|
|
| |
As suggested by Andrew Potter:
https://bugzilla.gnome.org/show_bug.cgi?id=757674#c9
|
|
|
|
|
| |
As noticed by Kjell Ahlstedt:
https://bugzilla.gnome.org/show_bug.cgi?id=757674#c10
|
|
|
|
| |
Bug #757674
|
|
|
|
| |
Instead of deprecated Glib::Threads::*.
|
| |
|
|
|
|
| |
And std::lock_guard<> instead of Glib::Threads::Mutex::Lock.
|
| |
|
|
|
|
|
|
| |
I didn't mean to push this yet. Maybe we will never deprecate this
if it offers better UTF-8 support than std::regex.
This reverts commit a1f0b1a06095d81b6a5b8255b818b1c35c92df29.
|
| |
|
| |
|