[glibmm] DBus::Error, DBus::Proxy: Fix interaction with generate_wrap_init.pl.
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] DBus::Error, DBus::Proxy: Fix interaction with generate_wrap_init.pl.
- Date: Tue, 28 Feb 2012 15:30:00 +0000 (UTC)
commit 0dfea3a4c04d47d31ba85594451bb91d1eebd892
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Tue Feb 28 16:25:20 2012 +0100
DBus::Error, DBus::Proxy: Fix interaction with generate_wrap_init.pl.
* gio/src/dbuserror.hg: Remove now unnecessary declaration of friend
Gio::wrap_init().
* gio/src/dbusproxy.hg: Add _GMMPROC_EXTRA_NAMESPACE(DBus). Bug #640029.
ChangeLog | 8 ++++++++
gio/src/dbuserror.hg | 12 ------------
gio/src/dbusproxy.hg | 2 ++
3 files changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c00328f..85a168d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2012-02-28 Kjell Ahlstedt <kjell ahlstedt bredband net>
+ DBus::Error, DBus::Proxy: Fix interaction with generate_wrap_init.pl.
+
+ * gio/src/dbuserror.hg: Remove now unnecessary declaration of friend
+ Gio::wrap_init().
+ * gio/src/dbusproxy.hg: Add _GMMPROC_EXTRA_NAMESPACE(DBus). Bug #640029.
+
+2012-02-28 Kjell Ahlstedt <kjell ahlstedt bredband net>
+
Fix exceptions thrown by Thread::create() and Threads::Thread::create.
* glib/src/thread.ccg: create(): Call g_thread_try_new() instead of
diff --git a/gio/src/dbuserror.hg b/gio/src/dbuserror.hg
index 96f411f..a68aa47 100644
--- a/gio/src/dbuserror.hg
+++ b/gio/src/dbuserror.hg
@@ -24,24 +24,12 @@ _DEFS(giomm,gio)
namespace Gio
{
-#ifndef DOXYGEN_SHOULD_SKIP_THIS
-//Our custom friend declaration (see below) needs this pre-declaration.
-void wrap_init();
-#endif // DOXYGEN_SHOULD_SKIP_THIS
-
namespace DBus
{
//The GMMPROC_EXTRA_NAMESPACE() macro is a hint to generate_wrap_init.pl to put it in the DBus sub-namespace
_GMMPROC_EXTRA_NAMESPACE(DBus)
-
-#m4 _PUSH(SECTION_H_GERROR_PRIVATE)
- //This extra line is only necessary because this class is in a sub-namespace, but we want
- //it to be used in the wrap_init() of the main namespace. It's an awkward hack.
- friend void Gio::wrap_init(); // uses throw_func()
-#m4 _POP()
-
_WRAP_GERROR(Error, GDBusError, G_DBUS_ERROR, NO_GTYPE)
} //namespace DBus
diff --git a/gio/src/dbusproxy.hg b/gio/src/dbusproxy.hg
index d019bd1..a17db05 100644
--- a/gio/src/dbusproxy.hg
+++ b/gio/src/dbusproxy.hg
@@ -32,6 +32,8 @@ namespace Gio
namespace DBus
{
+//The GMMPROC_EXTRA_NAMESPACE() macro is a hint to generate_wrap_init.pl to put it in the DBus sub-namespace
+_GMMPROC_EXTRA_NAMESPACE(DBus)
_WRAP_ENUM(ProxyFlags, GDBusProxyFlags, s#^DBUS_##, NO_GTYPE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]