2.27.91:
2011-01-11 José Alburquerque <
[email protected]>
DBusConnection: call*() methods: Re-order bus_name parameter.
* gio/src/dbusconnection.{ccg,hg} (call*): Place the bus_name
parameter before the timeout_msec parameter to make it easier to
specifiy a bus name without having to set a timeout value.
* gio/src/dbusaddress.hg (get_for_bus_sync): Correct declarations to
return std::string instead of Glib::ustring in accordance with the
last commit.
2011-01-11 José Alburquerque <
[email protected]>
DBus: Use std::string for addresses since they could be a file path.
* gio/src/dbusaddress.{ccg,hg}:
* gio/src/dbusconnection.{ccg,hg}:
* gio/src/dbusserver.{ccg,hg}: Use std::string instead of
Glib::ustring for address parameters just to avoid possible errors
since DBus address could be a filename path as the "Addresses"
section of the DBus introduction seems to imply:
http://www.freedesktop.org/wiki/IntroductionToDBus.
2011-01-11 José Alburquerque <
[email protected]>
DBus: Use std::string for guid's.
* gio/src/dbusaddress.{ccg,hg}:
* gio/src/dbusconnection.{ccg,hg}:
* gio/src/dbusserver.{ccg,hg}:
* gio/src/dbusutils.{ccg,hg}: Use std::string instead of Glib::ustring
for guid's since std::string's API is probably adequate enough for
their use.
2011-01-10 José Alburquerque <
[email protected]>
DBus: Add a peer example to test the DBusServer class.
* gio/src/dbusconnection.{ccg,hg}: Reorder the VariantBase
'parameters' parameter in the call*() methods to come after the
method_name parameter.
* gio/src/dbusintrospection.hg: Use refreturn for methods where the C
API does not automatically reference the return.
* gio/src/dbusserver.{ccg,hg}: Add non-observable constructors and
create() methods.
* glib/src/variant.{ccg,hg} (create_tuple): Renamed from create().
Write this method to be more specific for tuples (it's probably the
only case where this method might be used). Dealing with tuples still
feels awkward with the method. Maybe there's a better way.
* examples/Makefile.am:
* examples/dbus/peer.cc:
* examples/dbus/userbus.cc:
* examples/dbus/well-known-address-client.cc: Add the new
server/client peer example (named peer). The example crashes because
the C API seems to not deal with empty strings "" well, but at least
there is now an example. Making sure it runs well is necessary. Also
rename the previous example to userbus.cc.
2011-01-08 Krzesimir Nowak <
[email protected]>
Tools: Added a defs fixer tool.
tools/defs_fixer.pl: Helper tool to fix the generated defs. I hope
that for most cases it will be just better than using diff and patch.
2011-01-07 José Alburquerque <
[email protected]>
DBusConnection: Callbacks: Check for NULL GError** parameters.
* gio/src/dbusconnection.ccg: Make sure that the callbacks that set a
GError* do not try to access a NULL pointer if NULL has been passed
as the GError** parameter.
Bug #637587 (Yannick Guesnet)
2011-01-07 José Alburquerque <
[email protected]>
Gio::DBusConnection: Callbacks: Return all Glib::Errors to caller.
* gio/src/dbusconnection.ccg: Have to previously modified callbacks
that deal with getting/setting properties return all Glib::Errors
and not just Gio::DBusError types.
Bug #637587 (Yannick Guesnet)
2011-01-07 José Alburquerque <
[email protected]>
DBusConnection: Callbacks: Return DBusError exceptions to caller.
* gio/src/dbusconnection.ccg: Modify the callbacks that deal with
getting/setting properties for a DBus interface to set the GError*
parameter if it is a DBus related GError. This should allow receiving
DBus exceptions if the slot throws one with respect to not being able
to successfully get/set a property.
2011-01-07 José Alburquerque <
[email protected]>
DBusConnection: Use gobj() instead of reinterpret_cast<> for *VTable.
* gio/src/dbusconnection.ccg: Use the gobj() of the
DBusInterfaceVTable instead of casting it to a GDBusInterfaceVTable in
the callbacks and in the register_object() method.
2011-01-07 Murray Cumming <
[email protected]>
DBusConnection: Use const guint instead of guint const.
* gio/src/dbusconnection.ccg: This is more consistent with other code.
2011-01-07 Murray Cumming <
[email protected]>
DBusConnectionInvocation: Use refreturn on get methods.
* gio/src/dbusmethodinvocation.hg: This seems to be necessary, though it does
not fix bug #637587.
2011-01-07 Murray Cumming <
[email protected]>
DBusConnection: Use _ suffixes on member variables.
* gio/src/dbusconnection.[hg|ccg]: Use a _ suffix on member variables to
avoid confusion with method parameters of the same name, though this does not
seem to be what is causing bug #637587.
2011-01-06 José Alburquerque <
[email protected]>
DBusConnection: Add [register|unregister]_subtree() methods.
* gio/src/dbusconnection.{ccg,hg}: Add the new methods along with a
corresponding class (like the one for register_object()). Added
method docs. Modified the registration methods so that the vtable is
passed and not a struct containing the slots. Please note that this
API feels like it could be made better before glibmm goes stable. In
particular, it might be nice and (maybe even possible) to not require
that the *VTable instances be global.
2011-01-06 Murray Cumming <
[email protected]>
SocketService, ThreadedSocketService: Correct ref-counting for signals.
* tools/m4/convert_gio.m4: Remove conversions that are only for signals.
These should not generally be in the general m4 files, to avoid them being
used implicitly in the wrong place. This is important because they use
different reference-taking.
* gio/src/socketservice.hg:
* gio/src/threadedsocketservice.hg: Add corrected conversions here.
2010-01-06 Krzesimir Nowak <
[email protected]>
Gmmproc: Try harder to limit false unwrapped properties.
* tools/pm/GtkDefs.pm: When taking list of properties that are
unwrapped, try to filter out the properties defined in base class.
2011-01-05 José Alburquerque <
[email protected]>
DBusServer: Correct the "active" property.
* gio/src/dbusserver.hg: Correct the type of the "active" property.
2011-01-05 Murray Cumming <
[email protected]>
BufferedInputStream, BufferedOutputStream: Correct property name.
* gio/src/bufferedinputstream.[hg|ccg]
* gio/src/bufferedoutputstream.[hg|ccg]: When using create_sized(), it
tried to set the wrong property. Renaming the parameter from size to
buffer_size fixes this.
Bug #638616 (Michael Edwards)
2011-01-05 Krzesimir Nowak <
[email protected]>
Gmmproc: Warn about unwrapped properties.
* tools/gmmproc.in: When displaying a list of unwrapped properties,
ignore the ones that are nonreadable and construct only.
* tools/pm/Property.pm: Added entity_type member initialized with
'property' value to Property class, which allows us to sort out
which unwrapped entities are actually properties.