summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2.28.22.28.2glibmm-2-28Murray Cumming2011-06-143-1/+22
|
* Removed doctooldir variable from pkgconfig filesKalev Lember2011-06-133-2/+9
| | | | | | * 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
* m4 Macros: _INITIALZE: Modify so that $1 substitutes C++ type w/o &.José Alburquerque2011-06-132-1/+9
| | | | | | * tools/m4/convert_base.m4 (_INITIALIZE): Changed the macro so that $1 substitutes the C++ type without the final ampersand (&) for convenience.
* gmmproc: Use '.' instead of '-' in parameter reordering.José Alburquerque2011-06-122-8/+16
| | | | | | * 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::DBus::Connection::emit_signal(): Say why convert empty strings.José Alburquerque2011-06-092-0/+11
| | | | | * gio/src/dbusconnection.ccg (emit_signal): Explain why empty strings are converted to NULL when passed to the C API.
* Gio::DBus::Connection::emit_signal(): Replace empty strings with NULL.José Alburquerque2011-06-082-2/+15
| | | | | | | | * 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).
* M4 Macros: Rename the _INITIALIZER macro to _INITIALIZATION.José Alburquerque2011-06-072-4/+11
| | | | | * tools/m4/convert_base.m4 (_INITIALIZER): Rename the macro to _INITIALIZATION to be more consistent with the _CONVERSION macro.
* gmmproc: _WRAP_METHOD: Add the possibility of an output parameter.José Alburquerque2011-06-075-19/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* gmmproc: _WRAP_[CREATE|CTOR|METHOD]: Support parameter reordering.José Alburquerque2011-06-063-104/+133
| | | | | | | | | | | | | | | * 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: Recursive whitespace cleanup in folder.José Alburquerque2011-06-0515-51/+51
|
* gmmproc: Do not use NULL for optional parameters or properties.José Alburquerque2011-06-052-4/+12
| | | | | | * tools/pm/Output.pm (convert_args_cpp_to_c): (get_ctor_properties): Substitute 0 instead of NULL for optional parameters or properties.
* Fix the build with --enable-warnings=fatal.Murray Cumming2011-06-042-2/+9
| | | | | * tests/glibmm_nodetree/main.cc: Comment out a set-but-not-used variable.
* gmmproc: Use NULL for optional properties.José Alburquerque2011-06-012-2/+10
| | | | | | * 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().
* gmmproc: _WRAP_[CREATE|CTOR]: Add optional parameter functionality.José Alburquerque2011-06-015-25/+113
| | | | | | | | | | | | | | | | | | | | * 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.
* gmmproc: _WRAP_METHOD: Add optional parameter functionality.José Alburquerque2011-05-314-109/+386
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* gmmproc: Protect documentation with m4 quotes.Kjell Ahlstedt2011-05-273-29/+52
| | | | | | | | * 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
* Use tar-ustar instead of tar-pax to ensure OpenBSD compatibilityOlav Vitters2011-05-241-1/+1
|
* 2.28.12.28.1Murray Cumming2011-05-093-1/+25
|
* Correct ChangeLogMurray Cumming2011-05-091-8/+8
|
* Extra Defs Tool: Only generate properties that the GType owns.José Alburquerque2011-05-062-1/+15
| | | | | | | | * 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.
* gmmproc: Put guards around generated includes in wrap_init.ccKalev Lember2011-05-052-4/+13
| | | | | | * 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
* Update the VS 2008 project files.Fan, Chun-wei2011-05-033-0/+215
| | | | | * MSVC_Net2008/giomm/giomm.vcproj: * MSVC_Net2008/glibmm/glibmm.vcproj: Mention new source files.
* Update the VS 2010 project files.Fan, Chun-wei2011-05-035-0/+217
| | | | | | | * 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.
* Update the VS 2005 project files.Fan, Chun-wei2011-05-033-0/+219
| | | | | * MSVC_Net2005/giomm/giomm.vcproj: * MSVC_Net2005/glibmm/glibmm.vcproj: Mention new source files.
* gmmproc: Factored some copy-pasted code out to a common functionKalev Lember2011-05-032-92/+41
| | | | | | * 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 build: Use the GLIB_COMPILE_SCHEMAS variable.Volker Grabsch2011-05-032-1/+9
| | | | | | * examples/Makefile.am: Instead of hard-coding glib-compile-schemas. This was an issue in cross-toolchain environments. Bug #648485.
* Gio::DBus::Message: Fixed includes for WIN32Kalev Lember2011-05-022-1/+10
| | | | | * gio/src/dbusmessage.hg: Added G_OS_UNIX guards around unixfdlist.h include. Bug #649168
* gmmproc: GtkDefs::split_tokens() uses split() instead of substr().Kjell Ahlstedt2011-04-282-12/+27
| | | | | | * 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
* NEWS: fix typoMurray Cumming2011-04-061-1/+1
|
* Improved NEWSMurray Cumming2011-04-061-2/+52
|
* Minor documentation improvements.Murray Cumming2011-04-069-18/+40
| | | | | | | | | | | * 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.
* Fix the ChangeLogMurray Cumming2011-04-061-1/+1
|
* DBus docs: Add a descripton for they doxygen group.Murray Cumming2011-04-062-2/+14
| | | | * gio/src/dbusconnection.hg: Expand the defgroup doxygen comment block.
* 2.28.02.28.0Murray Cumming2011-04-053-1/+25
|
* DBusServer: Add overview documentation.Murray Cumming2011-04-052-0/+15
| | | | | * gio/src/dbusserver.hg: Based on my documentation patch for GDBusServer in bug #646425.
* Update a TODOMurray Cumming2011-04-041-1/+2
|
* ThemedIcon: Remove a property as suggested by a TODO.Murray Cumming2011-04-042-6/+14
| | | | | | * 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::Settings: Really add list_schemas().Murray Cumming2011-04-044-18/+38
| | | | | | | | * 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.
* Fixed the ChangeLogMurray Cumming2011-04-021-0/+1
|
* Gio::DBus examples: Renamed one and removed one.Murray Cumming2011-04-024-343/+17
| | | | | | | | | | | | * 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.
* Fix compiler warnings.Murray Cumming2011-04-022-2/+2
|
* Slight cleanup to D-Bus example code.Murray Cumming2011-04-023-72/+9
| | | | | | | * 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::DBus::NodeInfo::lookup_interface(): Add a method overload with no name.Murray Cumming2011-04-026-3/+50
| | | | | | | | | | | * 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::DBus::Connection: Added a register_method() overload with no vtable.Murray Cumming2011-04-023-2/+46
| | | | | * gio/src/dbusconnection.[hg|ccg]: This makes sense now that the C API's documentation was improved in bug #646419.
* Added a simple example of a D-Bus session bus service.Murray Cumming2011-04-015-9/+236
| | | | | | | * 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::DBus: Minor API changes.Murray Cumming2011-04-0111-112/+165
| | | | | | | | | | | | | | | | | | | | | * 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.
* Code style change.Murray Cumming2011-04-011-2/+2
|
* Rename a D-Bus client example.Murray Cumming2011-04-013-3/+10
| | | | | * examples/dbus/userbus.cc: Rename to client_bus_listnames.cc to make it more obvious what it does.
* Code style improvementMurray Cumming2011-04-011-5/+5
|
* DBusProxy: Rename type_map_changed_properties to MapChangeProperties.Murray Cumming2011-03-313-5/+12
| | | | | * gio/src/dbusproxy.[hg|ccg]: Use our normal convention for container typedefs.