From 961956f7e219357abd9c07f2e35560b3122ff5e0 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Sat, 13 Mar 2010 14:28:22 +0100 Subject: [PATCH] [AdgArrow] Provided a proper constructor with a known trail adg_arrow_new_with_trail() has been modified to automatically initialize the "n-segment" property to 1: it was set by default to 0, that is pointing to a unknown segment. --- adg/adg-arrow.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/adg/adg-arrow.c b/adg/adg-arrow.c index 5b3785f5..e835514a 100644 --- a/adg/adg-arrow.c +++ b/adg/adg-arrow.c @@ -160,9 +160,9 @@ adg_arrow_new(void) * @trail: the #AdgTrail where the arrow should be added * @pos: the position ratio on @trail * - * Creates a new arrow on @trail at position @pos, where @pos is - * a ratio of the @trail length (%0 is the start point, %1 the end - * point, %0.5 the middle point and so on). + * Creates a new arrow on the first segment on @trail at position + * @pos, where @pos is a ratio of the @trail length (being %0 the + * start point, %1 the end point, %0.5 the middle point and so on). * * Returns: the newly created arrow entity **/ @@ -171,6 +171,7 @@ adg_arrow_new_with_trail(AdgTrail *trail, gdouble pos) { return g_object_new(ADG_TYPE_ARROW, "trail", trail, + "n-segment", 1, "pos", pos, NULL); } -- 2.11.4.GIT