diff options
author | Murray Cumming <murrayc@usa.net> | 2004-01-22 18:38:14 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2004-01-22 18:38:14 +0000 |
commit | 62eb5f74af0eb32748cda0ec82c008c00c38c236 (patch) | |
tree | 68756b851a75349743f497e9821699645e7242c9 /tools/m4/property.m4 | |
parent | a4d64e4d436b8d21f64d9bf424af558c61010c71 (diff) | |
download | glibmm-62eb5f74af0eb32748cda0ec82c008c00c38c236.tar.gz |
Added clamp_min() and clamp_max() to wrap the case where g_date_clamp()
2004-01-22 Murray Cumming <murrayc@usa.net>
* glib/date.[hg|ccg]: Added clamp_min() and clamp_max() to wrap the
case where g_date_clamp() takes null values.
Diffstat (limited to 'tools/m4/property.m4')
-rw-r--r-- | tools/m4/property.m4 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/m4/property.m4 b/tools/m4/property.m4 index 7daee1ac..7c6b3f45 100644 --- a/tools/m4/property.m4 +++ b/tools/m4/property.m4 @@ -9,21 +9,21 @@ dnl dnl dnl _PROPERTY_PROXY(name, cpp_type, proxy_suffix) dnl proxy_suffix could be "_WriteOnly" or "_ReadOnly" +dnl The method will be const if the propertyproxy is _ReadOnly. dnl define(`_PROPERTY_PROXY',`dnl dnl dnl Put spaces around the template parameter if necessary. pushdef(`__PROXY_TYPE__',`dnl -/** - * You rarely need to use properties because there are get_ and set_ methods for almost all of them. - * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when - * the value of the property changes. - */ Glib::PropertyProxy$3<'ifelse(regexp(_QUOTE($2),`>$'),`-1',_QUOTE($2),` '_QUOTE($2)` ')`>'dnl )dnl -__PROXY_TYPE__ property_$1`'(); + /** You rarely need to use properties because there are get_ and set_ methods for almost all of them. + * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when + * the value of the property changes. + */ + __PROXY_TYPE__ property_$1`'() ifelse($3,_ReadOnly, const,); _PUSH(SECTION_CC_PROPERTYPROXIES) -__PROXY_TYPE__ __CPPNAME__::property_$1`'() +__PROXY_TYPE__ __CPPNAME__::property_$1`'() ifelse($3,_ReadOnly, const,) { return __PROXY_TYPE__`'(this, "$1"); } |