summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Alburquerque <jaalburqu@svn.gnome.org>2012-02-07 14:33:31 -0500
committerJosé Alburquerque <jaalburqu@svn.gnome.org>2012-02-07 14:33:31 -0500
commitb88285937a59bc671dfc38d287113a79848a2ad1 (patch)
treeb59d8fbd6928f8f0776c7547ad2311d2f7b7895a
parentce3f70daccba5b841fc508fa4c0ab808e35bb934 (diff)
downloadglibmm-b88285937a59bc671dfc38d287113a79848a2ad1.tar.gz
gmmproc: Method generation: Fix indentation of void methods.
* tools/m4/method.m4: Make sure that the generated line in methods returning void is indented properly (by two spaces). Before, there was no indentation (see for example the Entry::set_inner_border() method).
-rw-r--r--ChangeLog9
-rw-r--r--tools/m4/method.m42
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ca593856..6ae6ec49 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-02-07 José Alburquerque <jaalburquerque@gmail.com>
+
+ gmmproc: Method generation: Fix indentation of void methods.
+
+ * tools/m4/method.m4: Make sure that the generated line in methods
+ returning void is indented properly (by two spaces). Before, there
+ was no indentation (see for example the Entry::set_inner_border()
+ method).
+
2012-02-03 José Alburquerque <jaalburquerque@gmail.com>
gmmproc: Add documentation to wrapped signals.
diff --git a/tools/m4/method.m4 b/tools/m4/method.m4
index e194e728..7551c422 100644
--- a/tools/m4/method.m4
+++ b/tools/m4/method.m4
@@ -23,7 +23,7 @@ ifelse(`$11',,dnl
`ifelse(`$8'`$9',,dnl If it is not errthrow or refreturn
`ifelse(`$14',,dnl If no output parameter is specified
`ifelse(`$3',void,dnl If it returns voids:
-`$2(ifelse(`$7',1,const_cast<__CNAME__*>(gobj()),gobj())`'ifelse(`$6',,,`, ')$6);' dnl It it returns non-void:
+` $2(ifelse(`$7',1,const_cast<__CNAME__*>(gobj()),gobj())`'ifelse(`$6',,,`, ')$6);' dnl It it returns non-void:
,` return _CONVERT($4,`$3',`$2`'(ifelse(`$7',1,const_cast<__CNAME__*>(gobj()),gobj())`'ifelse(`$6',,,`, ')$6)');'dnl
)'dnl End if it returns voids.
dnl An output parameter is specified: