[glibmm] Added generic gmmproc conversions previously in convert_gtkmm.m4.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Added generic gmmproc conversions previously in convert_gtkmm.m4.
- Date: Thu, 9 Dec 2010 16:03:35 +0000 (UTC)
commit aed3a2ab9c8378501cf25539f5230b79f4be63ee
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Dec 9 17:03:23 2010 +0100
Added generic gmmproc conversions previously in convert_gtkmm.m4.
* tools/m4/convert_base.m4: Added generic macros back.
ChangeLog | 6 ++++++
tools/m4/convert_base.m4 | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5c9a14f..07150f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-12-09 Murray Cumming <murrayc murrayc-desktop>
+
+ Added generic gmmproc conversions previously in convert_gtkmm.m4.
+
+ * tools/m4/convert_base.m4: Added generic macros back.
+
2010-12-09 Murray Cumming <murrayc murrayc com>
Remove non-glibmm .m4 files.
diff --git a/tools/m4/convert_base.m4 b/tools/m4/convert_base.m4
index e64e4bc..51c462e 100644
--- a/tools/m4/convert_base.m4
+++ b/tools/m4/convert_base.m4
@@ -51,6 +51,12 @@ _CONVERSION(`$1::$2', `$1$2', (($1$2)(__ARG3__)))
# e.g. Glib::RefPtr<Gdk::Something> to GdkSomething*
define(`__CONVERT_REFPTR_TO_P',`Glib::unwrap($`'3)')
+define(`__FR2P',`($`'3).gobj()')
+define(`__CFR2P',`const_cast<$`'2>($`'3.gobj())')
+define(`__FCR2P',`const_cast<$`'2>(($`'3).gobj())')
+
+define(`__FL2H_SHALLOW',`$`'2($`'3, Glib::OWNERSHIP_SHALLOW)')
+
# e.g. Glib::RefPtr<const Gdk::Something> to GdkSomething*
#define(`__CONVERT_CONST_REFPTR_TO_P',`const_cast<$`'2>($`'3->gobj())')
define(`__CONVERT_CONST_REFPTR_TO_P',`const_cast<$`'2>(Glib::unwrap($`'3))')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]