From 3b020391311f256da61a60a4ff71f7d4e6e84e06 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Mon, 11 Jan 2010 14:58:44 +0100 Subject: [PATCH] [AdgADim] Reordered methods Switched to conventional method order, that is setter before getter. --- adg/adg-adim.c | 84 +++++++++++++++++++++++++++++----------------------------- adg/adg-adim.h | 4 +-- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/adg/adg-adim.c b/adg/adg-adim.c index 15f774e4..c483e0a1 100644 --- a/adg/adg-adim.c +++ b/adg/adg-adim.c @@ -358,48 +358,6 @@ adg_adim_new_full_from_model(AdgModel *model, } /** - * adg_adim_get_org1: - * @adim: an #AdgADim - * - * Gets the first origin of @adim. The returned pair is owned by - * @adim and should not be modified or freed. - * - * Returns: a pointer to the internal #AdgPair or %NULL on errors - **/ -const AdgPair * -adg_adim_get_org1(AdgADim *adim) -{ - AdgADimPrivate *data; - - g_return_val_if_fail(ADG_IS_ADIM(adim), NULL); - - data = adim->data; - - return adg_point_pair(data->org1); -} - -/** - * adg_adim_get_org2: - * @adim: an #AdgADim - * - * Gets the second origin of @adim. The returned pair is owned by - * @adim and should not be modified or freed. - * - * Returns: a pointer to the internal #AdgPair or %NULL on errors - **/ -const AdgPair * -adg_adim_get_org2(AdgADim *adim) -{ - AdgADimPrivate *data; - - g_return_val_if_fail(ADG_IS_ADIM(adim), NULL); - - data = adim->data; - - return adg_point_pair(data->org2); -} - -/** * adg_adim_set_org: * @adim: an #AdgADim * @org1: the first origin @@ -529,6 +487,48 @@ adg_adim_set_org_from_model(AdgADim *adim, AdgModel *model, g_object_thaw_notify(object); } +/** + * adg_adim_get_org1: + * @adim: an #AdgADim + * + * Gets the first origin of @adim. The returned pair is owned by + * @adim and should not be modified or freed. + * + * Returns: a pointer to the internal #AdgPair or %NULL on errors + **/ +const AdgPair * +adg_adim_get_org1(AdgADim *adim) +{ + AdgADimPrivate *data; + + g_return_val_if_fail(ADG_IS_ADIM(adim), NULL); + + data = adim->data; + + return adg_point_pair(data->org1); +} + +/** + * adg_adim_get_org2: + * @adim: an #AdgADim + * + * Gets the second origin of @adim. The returned pair is owned by + * @adim and should not be modified or freed. + * + * Returns: a pointer to the internal #AdgPair or %NULL on errors + **/ +const AdgPair * +adg_adim_get_org2(AdgADim *adim) +{ + AdgADimPrivate *data; + + g_return_val_if_fail(ADG_IS_ADIM(adim), NULL); + + data = adim->data; + + return adg_point_pair(data->org2); +} + static void local_changed(AdgEntity *entity) diff --git a/adg/adg-adim.h b/adg/adg-adim.h index 305f5c0b..17d92dbc 100644 --- a/adg/adg-adim.h +++ b/adg/adg-adim.h @@ -73,8 +73,6 @@ AdgADim * adg_adim_new_full_from_model (AdgModel *model, const gchar *org2, const gchar *pos); -const AdgPair * adg_adim_get_org1 (AdgADim *adim); -const AdgPair * adg_adim_get_org2 (AdgADim *adim); void adg_adim_set_org (AdgADim *adim, const AdgPair *org1, const AdgPair *org2); @@ -87,6 +85,8 @@ void adg_adim_set_org_from_model (AdgADim *adim, AdgModel *model, const gchar *org1, const gchar *org2); +const AdgPair * adg_adim_get_org1 (AdgADim *adim); +const AdgPair * adg_adim_get_org2 (AdgADim *adim); G_END_DECLS -- 2.11.4.GIT