| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
* glib/glibmm{,-uninstalled}.pc.in: Removed doctooldir variable now
that the scripts are in mm-common.
https://bugzilla.redhat.com/show_bug.cgi?id=712474
|
|
|
|
|
|
| |
* tools/m4/convert_base.m4 (_INITIALIZE): Changed the macro so that $1
substitutes the C++ type without the final ampersand (&) for
convenience.
|
|
|
|
|
|
| |
* tools/pm/Function.pm (parse_param): Use a '.' instead of a '-' to
signify that the C++ parameter name should be used as the C parameter
name to map the current C++ parameter to.
|
|
|
|
|
| |
* gio/src/dbusconnection.ccg (emit_signal): Explain why empty strings
are converted to NULL when passed to the C API.
|
|
|
|
|
|
|
|
| |
* gio/src/dbusconnection.ccg (emit_signal): Pass NULL to the C
function call where strings are empty allowing emitting signals to all
listeners.
Bug #645072 (Yannick Guesnet).
|
|
|
|
|
| |
* tools/m4/convert_base.m4 (_INITIALIZER): Rename the macro to
_INITIALIZATION to be more consistent with the _CONVERSION macro.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tools/pm/Output.pm (output_wrap_meth): Modified to test if there is
a parameter mapping in the current C++ function from the hypothetical
C name 'RET' to a C++ parameter index. If so, that parameter is
treated as an output parameter. This allows wrap statements such as:
_WRAP_METHOD(static void get_finish(Glib::RefPtr<Connection>&
conn{RET}, const Glib::RefPtr<AsyncResult>& res), g_bus_get_finish,
errthrow
)
Where the 'conn' parameter is an output parameter. The output
parameter name and type are passed to the _STATIC_METHOD and _METHOD
macros (along with the wrap line number).
(convert_args_cpp_to_c): Modified to process the C++ parameters
dealing with the possibility of an output parameter.
* tools/pm/Function.pm: Typo.
* tools/m4/method.m4 (_METHOD):
(_STATIC_METHOD): Both modified to accept an optional output parameter
name, type and wrap line number and if they exist to ensure that the
output parameter is correctly set to the return of the C function. To
do that it uses the new _INITIALIZE macro.
* tools/m4/convert_base.m4 (_INITIALIZER):
(_INITIALIZE): Add macros (similar to the _CONVERSION/_CONVERT
macros) used to record how to initialize a C++ type from a C type and
later to initialize an output parameter of the C++ type. The
_INITIALIZER macro has much the same syntax as the _CONVERSION macro.
For example:
_INITIALIZER(`Glib::RefPtr<Connection>&',`GDBusConnection*',
`$3 = Glib::wrap($4)')
Describes how to initialize a C++ reference to a Glib::RefPtr that
contains a Gio::DBus::Connection from its corresponding C type. $3
represents the output parameter name and $4 represents the C return.
The _INITIALIZE macro can then be appropriately used by the _METHOD
and _STATIC_METHOD macros to initialize the output parameters passed
to them by gmmproc.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tools/pm/Function.pm (param_mappings): Add a new hash member mapping
C parameter names to C++ parameter indices. The map is specified by
appending a {name[?]} to the desired C++ parameter name in the C++
method declaration. A '-' in place of a C parameter name means to use
the C++ parameter name.
(parse_param): Modified to detect parameter mappings and set the
appropriate mapping in the above new member. No mappings occur if
none are specified.
* tools/pm/Output.pm (convert_args_cpp_to_c):
(get_ctor_properties): Modified to use the new C param names to C++
param indices mappings member above to allow reordering of parameters
in the C++ method declaration.
|
| |
|
|
|
|
|
|
| |
* tools/pm/Output.pm (convert_args_cpp_to_c):
(get_ctor_properties): Substitute 0 instead of NULL for optional
parameters or properties.
|
|
|
|
|
| |
* tests/glibmm_nodetree/main.cc: Comment out a set-but-not-used
variable.
|
|
|
|
|
|
| |
* tools/pm/Output.pm(get_ctor_properties): Use NULL instead of
static_cast<char*>(0) for properties that are optional as is done in
convert_args_cpp_to_c().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tools/pm/Function.pm (new_ctor): Modified to initialize the new
param_optional and possible_args_list members.
* tools/pm/FunctionBase.pm (args_names_only): Typo.
(get_declaration): Make sure that spacing is correct if the
declaration is a constructor's declaration.
* tools/pm/Output.pm (output_wrap_meth): Store the number of possible
declarations instead of computing it each time in the for loop.
(output_wrap_ctor):
(output_wrap_create): Modified as output_wrap_meth() to loop through
the list of the possible combination of arguments to output
convenience overloads for the constructors and create() methods.
(get_ctor_properties): Modified as convert_args_cpp_to_c() to accept
an optional index specifying which argument list out of the possible
ones to use and to insert a static_cast<char*>(0) for optional
parameters not in the specified argument list.
* tools/m4/class_gobject.m4: Added a blank line after the create()
methods definitions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tools/pm/Function.pm (param_optional): Add new member bool array to
represent which parameters are optional.
(possible_args_list): Add new member string array containing a list of
the possible argument combination based on existing optional
parameters.
(possible_args_list): Added recursive function to generate the list of
possible parameter combinations. The first in the list (the zeroth
element) always includes all the paramters.
(new): Modified to initialize the new members above.
(parse_param): Modified to see if parameters are optional by checking
if the name ends with '{?}'.
* tools/pm/FunctionBase.pm (args_names_only):
(args_types_and_names):
(args_types_and_names_with_default_values): Modified to accept an
optional index representing the desired argument list to use out of
the possible combinations.
(get_declaration): New subroutine returning any of the possible
declarations based on optional arguments.
(get_num_possible_args_list): New subroutine returning the number of
possible combination of arguments.
* tools/pm/Output.pm (output_wrap_meth): Modified to loop through the
possible arguments list and generate a _METHOD or _STATIC_METHOD for
all the possible combination of arguments.
(convert_args_cpp_to_c): Modified as above to accept an optional index
parameter representing the argument list for which to generate
_CONVERT macros. For optional arguments a NULL is placed in the C
function call.
|
|
|
|
|
|
|
|
| |
* tools/pm/DocsParser.pm:
* tools/pm/Output.pm: Method documentation read from xxx_docs.xml, and
property documentation read from xxx_signals.defs are better protected with
m4 quotes and __BT__ and __FT__ macros in the input to the m4 macro
processor. Bug #603930
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* tools/extra_defs_gen/generate_extra_defs.cc: Modify the extra defs
generation tool to generate properties that the given GType owns.
g_object_interface_list_properties() includes all properties, even the
properties of possible base classes, but those properties should be
generated for the base classes and not for a derived GType.
|
|
|
|
|
|
| |
* tools/generate_wrap_init.pl.in: Store include filenames in a hashmap
(key: filename, value: cppname) so it is possible to print
_DISABLE_DEPRECATED and G_OS_WIN32 guards around them. Bug #649182
|
|
|
|
|
| |
* MSVC_Net2008/giomm/giomm.vcproj:
* MSVC_Net2008/glibmm/glibmm.vcproj: Mention new source files.
|
|
|
|
|
|
|
| |
* MSVC_Net2010/giomm/giomm.vcxproj:
* MSVC_Net2010/giomm/giomm.vcxproj.filters:
* MSVC_Net2010/glibmm/glibmm.vcxproj:
* MSVC_Net2010/glibmm/glibmm.vcxproj.filters: Mention new source files.
|
|
|
|
|
| |
* MSVC_Net2005/giomm/giomm.vcproj:
* MSVC_Net2005/glibmm/glibmm.vcproj: Mention new source files.
|
|
|
|
|
|
| |
* tools/generate_wrap_init.pl.in: Added print_with_guards() subroutine
and replaced all _DISABLE_DEPRECATED and G_OS_WIN32 guard printing with
calls to print_with_guards().
|
|
|
|
|
|
| |
* examples/Makefile.am: Instead of hard-coding glib-compile-schemas.
This was an issue in cross-toolchain environments.
Bug #648485.
|
|
|
|
|
| |
* gio/src/dbusmessage.hg: Added G_OS_UNIX guards around unixfdlist.h
include. Bug #649168
|
|
|
|
|
|
| |
* tools/pm/GtkDefs.pm: GtkDefs::split_tokens() splits the string with
split() instead of substr(). substr() can be very inefficient when splitting
a utf8 string. Bug #644037
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* gio/src/proxy.hg:
* gio/src/proxyaddress.hg:
* gio/src/proxyresolver.hg:
* gio/src/socketcontrolmessage.hg:
* gio/src/unixcredentialsmessage.hg:
* gio/src/unixfdlist.hg:
* gio/src/unixfdmessage.hg: Added these to NetworkIO doxygen group.
* glib/glibmm.h: Mention Gio::Settings.
|
| |
|
|
|
|
| |
* gio/src/dbusconnection.hg: Expand the defgroup doxygen comment block.
|
| |
|
|
|
|
|
| |
* gio/src/dbusserver.hg: Based on my documentation patch for GDBusServer
in bug #646425.
|
| |
|
|
|
|
|
|
| |
* gio/src/themedicon.hg: The name property is write-only and construct-only
so we should not have any API for it.
Noticed by Kjell Ahlstedt.
|
|
|
|
|
|
|
|
| |
* gio/src/gio_others.defs: Add g_settings_list_schemas(), though we do not
actually use this defnition yet. See below. This must be hand-written
because h2defs.py gets confused by the return type.
* gio/src/settings.[hg|ccg]: list_schemas(): Make this static and hand-code
it because gmmproc is confused by the declaration when it is static.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/dbus/server.cc: Rename this to server_without_bus.cc to make its
purpose clearer. This is not the common case. It is for private peer-to-peer
connections not involving the usual session or system buses, or any bus
for that matter. Meaning, for instance, that it does not assign names or
provide introspection, I think.
* examples/dbus/peer.cc: Removed this because it seems like just a
complicated version of the server_without_bus example, and this is not in sync
with the C versoin. Well, we should probably add a client for the server
example.
|
| |
|
|
|
|
|
|
|
| |
* examples/dbus/server.cc:
* examples/dbus/session_bus_service.cc: Remove code to handle the now
non-existant GetStdOut D-Bus method. That code was left over from an earlier
version of an example.
|
|
|
|
|
|
|
|
|
|
|
| |
* gio/src/dbusintrospection.[hg|ccg]: Add a lookup_interface() method overload
that just returns the first interface, avoiding the need to specify the name
when there is only one interface. The C API will not do this itself:
See bug #646417.
* examples/dbus/peer.cc:
* examples/dbus/server.cc:
* examples/dbus/session_bus_service.cc: Use the new method to simplify the
code slightly.
|
|
|
|
|
| |
* gio/src/dbusconnection.[hg|ccg]: This makes sense now that the C API's
documentation was improved in bug #646419.
|
|
|
|
|
|
|
| |
* examples/dbus/session_bus_service.cc: This uses Gio::DBus::own_name().
* examples/Makefile.am: Mention the new test.
* examples/dbus/server.cc: Mention the return (out) value for the GetTime
method here too, and catch an exception.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gio/src/dbusconnection.[hg|ccg]: register_object(), register_subtree():
Take the VTable by reference, not pointer. register_object() can take a NULL
but that needs documentation (see the bug mentioned) and a future method
overload.
* gio/src/dbusmethodinvocation.ccg: get_parameters(): Return a
VariantContainerBase instead of taking a VariantBase output parameter,
because this is always a tuple. Well, I think so: See the bug mentioned.
* gio/src/dbusmethodinvocation.hg: return_value(): Take a VariantContainerBase
instead of a VariantBase, because this is always a tuple.
return_gerror(), return_error_literal(): Rename them both to return_error().
* glib/src/variant.hg: VariantContainerBase::create_tuple(): Add a method
overload that takes a single VariantBase, for convenience, so that applications
don't need to create a single-item vector.
* examples/dbus/busserver.cc: Adapted.
* examples/dbus/busserver.cc: Rename to server.cc and actually implement it,
though I am currently confused about whether this server's object should be
available on an existing bus. Maybe we should use Gio::DBus::own_name()
instead of Gio::DBus::Server.
|
| |
|
|
|
|
|
| |
* examples/dbus/userbus.cc: Rename to client_bus_listnames.cc to make it
more obvious what it does.
|
| |
|
|
|
|
|
| |
* gio/src/dbusproxy.[hg|ccg]: Use our normal convention for container
typedefs.
|