From 2c32390b7b8c4ad5fc5e29a0b40125a63e86c214 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Fri, 18 Sep 2009 13:04:39 +0200 Subject: [PATCH] [AdgDimStyle] Removed adg_dim_style_beyond() The "beyond" property does not have an automatic value anymore, as specified by the 09559cab051bd16ac35b2a96b5fdc11558767178 commit. Removed the useless API for autocomputation of beyond and updated docblocks where misleadings. --- adg/adg-dim-style.c | 37 +++---------------------------------- adg/adg-dim-style.h | 1 - 2 files changed, 3 insertions(+), 35 deletions(-) diff --git a/adg/adg-dim-style.c b/adg/adg-dim-style.c index 08377831..006f2a4b 100644 --- a/adg/adg-dim-style.c +++ b/adg/adg-dim-style.c @@ -784,44 +784,13 @@ adg_dim_style_set_to_offset(AdgDimStyle *dim_style, gdouble offset) } /** - * adg_dim_style_beyond: - * @dim_style: an #AdgDimStyle object - * - * Gets how much (in global space) the baseline should extend beyound - * the extension lines when a dimension has outside markers. If the - * underlying AdgDimStyle:beyond property is %0, this function returns - * the 3*"marker-size", where "marker-size" is the value returned by - * adg_marker_style_get_size() on #AdgMarkerStyle binded to @dim_style. - * - * Returns: the requested lenght - **/ -gdouble -adg_dim_style_beyond(AdgDimStyle *dim_style) -{ - AdgDimStylePrivate *data; - gdouble marker_size; - - g_return_val_if_fail(ADG_IS_DIM_STYLE(dim_style), 0); - - data = dim_style->data; - marker_size = 10; - - if (data->beyond > 0) - return data->beyond; - - return marker_size * 3; -} - -/** * adg_dim_style_get_beyond: * @dim_style: an #AdgDimStyle object * - * Gets how much (in global space) the baseline should extend beyound - * the extension lines on dimension with outside markers. This is an - * accessor method: if you need AdgDimStyle:beyond for rendering purpose, - * use adg_dim_style_beyond() instead. + * Gets how much (in global space) the baseline should extend beyond + * the extension lines on dimension with outside markers. * - * Returns: the requested lenght or %0 for automatic computation + * Returns: the requested beyond length **/ gdouble adg_dim_style_get_beyond(AdgDimStyle *dim_style) diff --git a/adg/adg-dim-style.h b/adg/adg-dim-style.h index 494858f3..d8697976 100644 --- a/adg/adg-dim-style.h +++ b/adg/adg-dim-style.h @@ -82,7 +82,6 @@ void adg_dim_style_set_from_offset (AdgDimStyle *dim_style, gdouble adg_dim_style_get_to_offset (AdgDimStyle *dim_style); void adg_dim_style_set_to_offset (AdgDimStyle *dim_style, gdouble offset); -gdouble adg_dim_style_beyond (AdgDimStyle *dim_style); gdouble adg_dim_style_get_beyond (AdgDimStyle *dim_style); void adg_dim_style_set_beyond (AdgDimStyle *dim_style, gdouble length); -- 2.11.4.GIT