[glibmm] Added conversion from bool& to gboolean*.
- From: Chris Kühl <chriskuehl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Added conversion from bool& to gboolean*.
- Date: Sat, 15 Jan 2011 00:14:41 +0000 (UTC)
commit f9618cb251b458571dc7ae72523521bd04ca2849
Author: Chris Kühl <chrisk openismus com>
Date: Sat Jan 15 01:09:56 2011 +0100
Added conversion from bool& to gboolean*.
* tools/m4/convert_glib.m4:
ChangeLog | 41 +++++++++++++++++++++++------------------
tools/m4/convert_glib.m4 | 5 +++--
2 files changed, 26 insertions(+), 20 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ea83be9..3b7a854 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-15 Chris Kühl <chrisk openismus com>
+
+ Added conversion from bool& to gboolean*.
+
+ * tools/m4/convert_glib.m4: Added conversion from bool& to gboolean*.
2011-01-13 José Alburquerque <jaalburqu svn gnome org>
DBusServer: Comment out constructors because of bug #639478.
@@ -210,15 +215,15 @@
DBusConnectionInvocation: Use refreturn on get methods.
- * gio/src/dbusmethodinvocation.hg: This seems to be necessary, though it does
+ * gio/src/dbusmethodinvocation.hg: This seems to be necessary, though it does
not fix bug #637587.
2011-01-07 Murray Cumming <murrayc murrayc com>
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
+ * 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 <jaalburqu svn gnome org>
@@ -238,12 +243,12 @@
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
+ 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 <qdlacz gmail com>
Gmmproc: Try harder to limit false unwrapped properties.
@@ -262,10 +267,10 @@
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
+ * 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 <qdlacz gmail com>
@@ -385,14 +390,14 @@
* glib/glibmm/refptr.h: Add operators <, <=, >, >=
that compare RefPtrs by their underlying pointer.
This makes RefPtr work with sorted containers (e.g. std::set<RefPtr<T> >)
-
+
Bug #626858
2010-12-22 Yannick Guesnet <Yannick Guesnet univ-rouen fr>
giomm: Application: Add the open signal.
- * gio/src/application.[hg|ccg]: Add signal_open(), by hand-coding instead of
+ * gio/src/application.[hg|ccg]: Add signal_open(), by hand-coding instead of
using _WRAP_SIGNAL(), because we need to change the number of parameters.
2.27.5:
@@ -400,10 +405,10 @@
2010-12-22 Murray Cumming <murrayc murrayc com>
Variant: Fix compiler warnings.
-
- * glib/src/variant.ccg: Remove some uses of the typename keyword to avoid
- warnings about using them outside of templates (they were in template
- specializations, which I guess is different).
+
+ * glib/src/variant.ccg: Remove some uses of the typename keyword to avoid
+ warnings about using them outside of templates (they were in template
+ specializations, which I guess is different).
2010-12-22 José Alburquerque <jaalburqu svn gnome org>
@@ -628,9 +633,9 @@
* tools/m4/convert_gdk.m4:
* tools/m4/convert_gtk.m4:
* tools/m4/convert_gtkmm.m4:
- * tools/m4/convert_pango.m4: Remove conversions and macros for non-glibmm
+ * tools/m4/convert_pango.m4: Remove conversions and macros for non-glibmm
types. These will be moved to atkmm, pangomm and gtkmm instead.
-
+
2010-12-09 José Alburquerque <jaalburqu svn gnome org>
DBusProxy: Add a non-cancellable call_sync() method.
@@ -793,7 +798,7 @@
ApplicationCommandLine: Fix print() and print_err().
- * gio/src/applicationcommandline.[hg|ccg]: These functions take a printf
+ * gio/src/applicationcommandline.[hg|ccg]: These functions take a printf
format and arguments, as shown by compiler warnings. So I just used "%s".
2010-11-15 José Alburquerque <jaalburqu svn gnome org>
diff --git a/tools/m4/convert_glib.m4 b/tools/m4/convert_glib.m4
index 086b78a..fce4864 100644
--- a/tools/m4/convert_glib.m4
+++ b/tools/m4/convert_glib.m4
@@ -1,6 +1,6 @@
-dnl
+dnl
dnl Glib C names have prefix 'G' but C++ namespace Glib
-dnl
+dnl
define(`_CONV_GLIB_ENUM',`dnl
_CONVERSION(`G$1', `$1', (($1)(__ARG3__)))
_CONVERSION(`G$1', `Glib::$1', ((Glib::$1)(__ARG3__)))
@@ -40,6 +40,7 @@ _CONVERSION(`int',`bool',`$3')
_CONVERSION(`bool',`int',`static_cast<int>($3)')
_CONVERSION(`unsigned int',`bool',`$3')
_CONVERSION(`bool',`unsigned int',`static_cast<unsigned int>($3)')
+_CONVERSION(`bool&',`gboolean*',`(($2) &($3))')
_CONVERSION(`int&',`gint*',`&($3)')
_CONVERSION(`gint*',`int&',`*($3)')
_CONVERSION(`guint&',`guint*',`&($3)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]