| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* tools/gen_scripts/gio_generate_docs.sh:
* tools/gen_scripts/gio_generate_enums.sh:
* tools/gen_scripts/gio_generate_extra_defs.sh:
* tools/gen_scripts/gio_generate_methods.sh:
* tools/gen_scripts/glib_generate_docs.sh:
* tools/gen_scripts/glib_generate_enums.sh:
* tools/gen_scripts/glib_generate_extra_defs.sh:
* tools/gen_scripts/glib_generate_methods.sh:
|
|
|
|
|
|
|
|
| |
* tools/gmmproc.in: Check for the GMMPROC_RETURN_MISMATCHES
environment variable and use its value as the default for the internal
boolean '$main::return_mismatches' variable which when true makes
gmmproc report if the return type in a _WRAP_METHOD() does not match
the C function return type.
|
|
|
|
|
|
|
|
|
| |
* tools/gmmproc.in: Use autoconf's substitution variable @PACKAGE_VERSION@.
* tools/m4/base.m4: _START() macro: Add argument glibmm_version.
* tools/pm/Output.pm: output_temp_g1(): Add argument glibmm_version.
The problems with gtkmm 2.24.3 (bug 697835 and bug 700495) show that it can
be useful to easily see which version of gmmproc/glibmm has generated a file.
|
|
|
|
|
|
|
|
|
| |
* gio/src/dbusinterfaceskeleton.hg (get_info): Add a const get_info()
method returning a constant InterfaceInfo and make the original one
non-constant.
(has_connection): Accept the Connection as constant because it should
not be modified.
* tools/m4/convert_gio.m4: Add a needed conversion.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gio/src/dbusinterfaceskeleton.{ccg,hg}:
* gio/src/filelist.am: Add the sources wrapping the methods,
properties and signals and list the sources in the list of files to be
built.
* gio/src/gio_signals.defs:
* tools/extra_defs_gen/generate_defs_gio.cc: Add the
GDBUSInterfaceSkeleton GType to the properties and signals defs
generation tool and regenerate the .defs file.
* tools/m4/convert_gio.m4: Add the conversions for the wrapped
methods, properties and signals.
|
|
|
|
| |
* glib/glibmm/main.h: Change "context is the owner" to "thread is the owner".
|
|
|
|
|
| |
* tests/glibmm_mainloop/main.cc: Make it work as expected whichever thread
executes first.
|
|
|
|
|
|
| |
* tests/glibmm_mainloop/main.cc: New file. Tests MainContext and MainLoop,
including MainContext::invoke().
* tests/Makefile.am: Add glibmm_mainloop/test. Bug #668184.
|
|
|
|
| |
* glib/glibmm/main.[h|cc]: Add Glib::MainContext::invoke(). Bug #668184.
|
|
|
|
|
| |
* glib/glibmm.h:
* glib/src/bytearray.hg: Add missing includes.
|
|
|
|
| |
* tools/test_scripts/testheaders.sh: Stop if pkg-config fails.
|
|
|
|
|
| |
* tools/test_scripts/testheaders.sh: New file. Compiles each specified header
file, one at a time. Bug #697835.
|
|
|
|
|
| |
* tools/test_scripts/testmmh.sh: New file. Checks if all header files are
included in a <name>mm.h file. Bug #699993.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* glib/glibmm/class.cc (Class::clone_custom_type): Specify a custom
base finalize function for the custom type which would free the
properties data that might exist due to properties of implemented
interfaces being overridden. This is better than having an interface
finalize function because the custom type could implement several
interfaces which would mean that the interface finalize function would
execute more than once as opposed to just once for the base finalize
function.
* glib/glibmm/class.h (Class::interface_finalize_function): Replace
with Class::custom_class_base_finalize_function().
* glib/glibmm/interface.cc (Interface_Class::add_interface): Do not
specify a custom interface finalize function.
(Interface::Interface(const Interface_Class&): Also initialize the
property GValues using g_param_value_set_default() so that they are
initialized with the default values of the properties and not just the
default value of the GValue type.
Bug #697229.
|
|
|
|
| |
* gio/src/unixsocketaddress.hg:
|
|
|
|
|
|
|
|
| |
encoding and decoding are wrapped.
step by step and in-place decoding are not wrapped.
(they're too low level for C++, and they're available from the C library.)
Bug #611589.
|
|
|
|
|
|
|
| |
* tools/pm/Output.pm (output_wrap_meth, convert_args_cpp_to_c,
get_ctor_properties): Replace the 'cpp_param_mappings' variable name
with 'c_param_name_mappings' which describes the function of the hash
a little better.
|
|
|
|
|
|
|
|
| |
* gio/src/dbusconnection.hg: Move the #endif from below the
call_finish _WRAP_METHOD() to below the non-cancellable call method
declaration. It worked as it was because what was generated by
gmmmproc was an #ifdef G_OS_UINX/#endif embedded in an outer #ifdef
G_OS_UNIX/#endif but it's how it should be now.
|
|
|
|
|
|
|
|
|
| |
* glib/glibmm/value.cc:
* glib/glibmm/value.h:
* glib/glibmm/value_custom.cc:
* glib/glibmm/value_custom.h:
* glib/src/value_basictypes.cc.m4:
* glib/src/value_basictypes.h.m4:
|
|
|
|
|
|
|
|
|
|
| |
* tools/pm/Output.pm (convert_args_c_to_cpp): Reverse the hash that
maps from parameter names to indexes to a hash that maps from
indexes to parameter names correctly (by dereferencing the hash
reference) so that parameter reordering for virtual functions works
for all Perl versions.
Bug #698989 (David Evans, John Ralls)
|
|
|
|
|
|
|
| |
* tools/m4/signal.m4: If custom_c_callback is specified, and the signal
handler takes no arguments and returns void, generate a SignalProxyInfo
structure with pointers to local functions instead of
&Glib::SignalProxyNormal::slot0_void_callback. Bug #605728.
|
|
|
|
|
|
| |
* glib/glibmm/interface.cc (Interface(onst Interface_Class&)): Explain
what is happening with the lines that override the properties of the
implemented interface, if any, for a custom type.
|
| |
|
|
|
|
| |
* gio/src/settings.hg:
|
|
|
|
|
|
| |
* glib/glibmm/main.cc: Keep the Glib::Source wrapper until the GSource
instance has been destroyed and all RefPtr<Source> have been deleted.
Keep a separate ref count in glibmm. Bug #561885.
|
|
|
|
|
|
| |
* glib/src/bytearray.{ccg,hg}: Make the already existing get_data()
method non-constant and add a constant one returning a const array as
is done in general in *mm modules.
|
|
|
|
|
|
| |
* tests/giomm_tls_client/main.cc: Slightly cleaned it up from the
first commit. Lookup the issuer's certificate in the database which
is found when I run the test.
|
|
|
|
|
|
|
| |
* gio/src/tlsdatabase.hg: Use the {.?} gmmproc parameter option for
the cancellable to ensure that it is optional (so that there are
methods that don't require a cancellable for the methods that have
one).
|
|
|
|
|
|
|
| |
* glib/src/bytearray.{ccg,hg}: Add these methods so that accessing
the underlying GByteArray's data and len members (which is how it is
done in the C API) is just as easy with glibmm. Also use _WRAP_METHOD
to wrap the create() method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tools/pm/Function.pm (parse_param): When splitting the argument
list split the parameter '{...}' options out and separately and deal
with them in their own 'elsif' which is more clear and avoids code
duplication. Also, don't split the '<...>' matches greedily because
that causes problems when a Glib::RefPtr<> parameter has a default
value.
This problem was discovered while trying to not use the optional
parameter syntax for the Gio::TlsCertificate::verify() method by using
a default value for the 'trusted_ca' parameter although upon
investigation it became clear that keeping the syntax (and the method
overloads) would be useful because a verify() with no parameters can
be used to verify things about a certificate unrelated to the identity
and the trusted_ca (see the TlsCertificateFlags enum that the method
returns).
|
|
|
|
| |
* glib/glibmm/interface.cc:
|
|
|
|
|
|
|
|
|
| |
* gio/src/tlsserverconnection.{ccg,hg}: Use a custom cast constructor
just as in TlsClientConnection because this class too derives from
Glib::Interface and Gio::TlsConnection though it only derives from
GInterface in the C API. It would have the same problems described in
the commit fixing the TlsClientCOnnection class (the next to the last
one).
|
|
|
|
|
| |
* tests/giomm_tls_client/main.cc: The test basically works though it
would be good to test more thoroughly the TlsDatabase API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tools/m4/class_interface.m4 (_CUSTOM_CTOR_CAST): Add a new macro so
that classes wrapped by the _CLASS_INTERFACE() macro can implement a
custom cast constructor. This is so that classes like
Tls[Client|Server]Connection, that derive from Glib::Interface but
should also derive from a Glib::Object derived type, though they do
not do so in the C API, don't produce warnings from an attempt to set
the non-existent properties of the GObject derived type when an
attempt to construct the C object is made in the default Glib::Object
constructor. Glib::wrap_auto_interface<>(), which is called by
Glib::wrap() for interfaces, uses the cast constructor to create the
wrapper which calls the cast constructor of Glib::Interface. If the
Glib::Object derived base class of the wrapper has a default
constructor, that constructor is then called which leads to the
Glib::Object default constructor being called, which tries to
construct the C object and set its properties thus producing the
property setting warnings. A custom cast constructor can chain up to
the cast constructor of the Glib::Object derived type thus avoiding
the call to the Glib::Object default constructor and the non-existent
property setting warnings.
* glib/glibmm/interface.cc:
* glib/glibmm/interface.h (Interface): Add a default constructor so
that in the cases above (when the cast constructor of the
Glib::Object's derived type is used), the compiler can find a
Glib::Interface default constructor to use. Using the Glib::Interface
cast constructor as well as the cast constructor of the Glib::Object
derived type would cause "ObjectBase::initialize() called twice
for the same GObject" errors.
|
|
|
|
|
|
|
| |
* tests/Makefile.am:
* tests/glibmm_interface_implementation/main.cc: Add a very simple
test that implements an interface, with a vfunc implementation and
make sure that the vfunc is called when the caller method is called.
|
|
|
|
|
|
|
| |
* glib/src/bytearray.{ccg,hg}: Add the specialization for ByteArray so
that getting/setting properties of that type work. Also added a
Glib::ByteArray::get_type() method required for the specialization to
compile.
|
| |
|
| |
|
|
|
|
|
|
| |
This reverts commit 45511d8e0ffdda76d792174569535a8b7f326d93.
We will now try to get this right for the glibmm 3.7/8 releases.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gio/src/tlscertificate.{ccg,hg} (TlsCertificate): Use a std::string
in the data constructor instead of a char* because it is more C++
like. Remove the default value for the length argument so there is no
ambiguity with the file constructor (which also uses std::string for
the filename).
(create_from_pem): Renamed from create() so that there is no ambiguity
with the other file create() methods (one with a filename argument and
the other with a filename and key file arguments). Handwrote the
method in the .ccg file (_WRAP_CREATE does not allow a custom method
name).
(property_certificate_pem): Use a std::string instead of a char* for
the property type in keeping with the use of std::string for pem data.
These changes are for when the Tls* classes are re-added to the build.
|
|
|
|
|
| |
* gio/src/credentials.hg: Add the new method wrapping the
g_credentials_get_unix_pid() C function.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Temporarily remove the API until after the coming stable release so
the API can be better developed thus avoiding the risk of needing an
API or ABI break later.
* gio/src/filelist.am: Remove the tls*.hg files from the build. This
will keep the sources from being built and included in the upcoming
tarball release.
* gio/giomm.h: #if out the tls*.h includes.
* gio/src/enums.hg: Comment out the TlsAuthenticationMode enum.
* gio/src/error.hg: Comment out the TlsError GError.
|
|
|
|
|
|
|
|
| |
* gio/src/tlscertificate.hg (get_issuer):
* gio/src/tlsclientconnection.hg (get_server_identity):
* gio/src/tlsconnection.hg (get*_certificate): Use refreturn in the
wrapping of these because the C API does not reference the object when
returning it.
|
|
|
|
|
|
|
|
| |
* gio/giomm.h: Remove the include from here so that make check will
not fail.
* gio/src/error.hg (TlsError): A minor correction in the 'EOF'
substitution regular expression.
|
|
|
|
|
| |
* gio/src/filelist.am (tlsfiledatabase.hg): Remove from the build
until it is more clear how the class should be used.
|
|
|
|
|
|
| |
* gio/src/error.hg (EOF): Rename it to ENDOFFILE to avoid a clash with
another definition of the identifier somewhere else which breaks the
gtkmm build.
|
| |
|