[glibmm] gmmproc: Method generation: Fix indentation of void methods.



commit b88285937a59bc671dfc38d287113a79848a2ad1
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Tue Feb 7 14:33:31 2012 -0500

    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).

 ChangeLog          |    9 +++++++++
 tools/m4/method.m4 |    2 +-
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ca59385..6ae6ec4 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 e194e72..7551c42 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:



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