2011-01-17 Murray Cumming Fix the make check build. * examples/dbus/busserver.cc: Comment out unused methods, to fix the build. I guess this example is still in progress. Otherwise, the commented code should really be removed. 2010-12-22 Murray Cumming gmmproc: _CLASS_GOBJECT: reverted removal of __REAL_* arguments. This is still needed for the gtkmm-2-24 branch. 2011-01-16 José Alburquerque DBus: Add initial implementation of a bus server/client example. * examples/Makefile.am: * examples/dbus/busserver.cc: Add a partial implementation of the server part of a server/client example that communicate through the user's bus. * examples/dbus/peer.cc: Typos. 2011-01-16 José Alburquerque DBusConnection: Add a send_message() without an "out_serial" param. * gio/src/dbusconnection.{ccg,hg} (send_message): Add new method without the "out_serial" param. * gio/src/unixfdlist.hg (append): Add exception docs to method. 2011-01-16 José Alburquerque Gio::DBus::[watch|own]_name(): Add default values for parameters. * gio/src/dbusownname.{ccg,hg} (own_name): * gio/src/dbuswatchname.{ccg,hg} (watch_name): Add default values for the slot parameters instead of writing up overloads since there would be many. Also reorder the parameters so that the flags have default values. 2011-01-16 José Alburquerque InetAddress: Wrap properties. * gio/src/inetaddress.hg: Wrap the properties. * gio/src/dbusconnection.hg: Typo. 2011-01-15 Chris Kühl Added conversion from bool& to gboolean*. * tools/m4/convert_glib.m4: Added conversion from bool& to gboolean*. 2011-01-13 José Alburquerque DBusServer: Comment out constructors because of bug #639478. * gio/src/dbusserver.{ccg,hg}: Comment out the constructors because the C new function does more than calling g_initable_new(). 2011-01-13 José Alburquerque Variant: Use variant_type() functions in implementation where possible. * glib/src/variant.ccg: Use the existing variant_type() functions where possible. * gio/src/dbusserver.ccg: File bug #639478 about GDBusServer's new function doing more than using g_initable_new(). 2011-01-13 José Alburquerque Variant: Have the variant_type() functions return actual types. * glib/src/variant.hg: Correct the variant_type() functions of the container derived classes to create and return actual variant types and not abstract ones. Also use the functions in the implementation of the existing methods. 2011-01-13 José Alburquerque DBus: Avoid errors/exceptions in callbacks due to NULL C strings. * gio/src/dbusconnection.ccg: Modify the callbacks so that if a C string parameter might be NULL, it is passed to the slots as an empty string (""). This avoids possible exceptions from constructing a Glib::ustring from NULL. * gio/src/dbusconnection.hg: Typos. * examples/dbus/peer.cc: Add the usage examples from the C API's example. 2011-01-13 José Alburquerque DBusServer: Add docs to the signal_new_connection() signal. * gio/src/dbusserver.hg: Add the docs from the C API to make sure it clear to users that when handling the "new-connection" signal that a reference to the new connection must be kept or the connection will not be accepted. * examples/dbus/peer.cc: Make an exception message more general to cover both a possible exception from the call_sync() call and the close_sync() call. 2011-01-13 José Alburquerque DBusConnection, DBusMessage: Wrap properties and signals. * tools/extra_defs_gen/generate_defs_gio.cc: * gio/src/gio_signals.defs: Add the GDBusConnection and the GDBusMessage types to the signal and properties generation tool and regenerate the defs file. * gio/src/dbusconnection.hg: Wrap the properties and signals. * gio/src/dbusmessage.hg: Wrap the properties (no signals). * gio/src/dbusproxy.hg: Comment out a write-only/construct-only property. 2011-01-12 José Alburquerque DBus Peer Example: Correct some code to complete the example. * examples/dbus/peer.cc (keep_connection): renamed to curr_connection. (on_method_call): Place the return value of the method in a tuple which is then returned. (curr_connection): Use this variable to manage incoming connections. The C API docs says that when handling ther DBusServer's signal_new_connection() a reference to the connection should be kept and the handler should return true if the connection should be kept. This variable keeps a reference to the current connection. When the caller finishes, it closes the connection thus allowing the server to accept another connection. (try/catches): Add return statements in the catches that fail so that execution does not continue. The example runs successfully with the previous commit and the patch in bug #639391 filed in the glib bugzilla product page. Hopefully the request will be accepted. 2011-01-12 José Alburquerque DBusConnection: Check for NULL bus name in the MethodCall callback. * gio/src/dbusconnection.ccg (DBusConnection_Message_Filter_giomm_callback): Since the sender can be NULL, check for that so that creating a Glib::ustring from a NULL does not cause exceptions.