[glibmm] Gio::DBusServer: Use the _CONSTRUCT macro in the constructor.



commit e6404aabd918275b53ef6f7c8ed20203d351fb8a
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Mon Jul 26 00:37:35 2010 -0400

    	Gio::DBusServer: Use the _CONSTRUCT macro in the constructor.
    
    	* gio/src/dbusserver.ccg (DBusServer): Use the _CONSTRUCT macro in the
    	constructor so that its instances are constructed properly.

 ChangeLog              |    7 +++++++
 gio/src/dbusserver.ccg |    6 ++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3f6e610..064a763 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-26  José Alburquerque  <jaalburqu svn gnome org>
+
+	Gio::DBusServer: Use the _CONSTRUCT macro in the constructor.
+
+	* gio/src/dbusserver.ccg (DBusServer): Use the _CONSTRUCT macro in the
+	constructor so that its instances are constructed properly.
+
 2010-07-25  José Alburquerque  <jaalburqu svn gnome org>
 
 	Add Gio::DBusServer.
diff --git a/gio/src/dbusserver.ccg b/gio/src/dbusserver.ccg
index b0d0ba5..722ffc0 100644
--- a/gio/src/dbusserver.ccg
+++ b/gio/src/dbusserver.ccg
@@ -19,6 +19,7 @@
 
 #include <gio/gio.h>
 #include <giomm/dbusconnection.h>
+#include <giomm/dbusauthobserver.h>
 
 namespace Gio
 {
@@ -26,6 +27,11 @@ namespace Gio
 DBusServer::DBusServer(const Glib::ustring& address, DBusServerFlags flags,
   const Glib::ustring& guid, const Glib::RefPtr<DBusAuthObserver>& observer,
   const Glib::RefPtr<Cancellable>& cancellable)
+  : _CONSTRUCT("address",
+    (address.empty() ? static_cast<char*>(0) : address.c_str()),
+    "flags", static_cast<GDBusServerFlags>(flags),
+    "guid", (guid.empty() ? static_cast<char*>(0) : guid.c_str()),
+    "authentication-observer", Glib::unwrap(observer))
 {
   init(cancellable);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]