From 41d5f85044e3f1ccb0175553049240e5d67c8509 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Tue, 15 Sep 2009 18:13:34 +0200 Subject: [PATCH] [AdgDress] Added markers to dim styles Using a default AdgArrow as marker template for both the starting and ending marker of ADG_DRESS_DIMENSION_REGULAR. --- adg/adg-dress.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/adg/adg-dress.c b/adg/adg-dress.c index b0ac1014..9883b15d 100644 --- a/adg/adg-dress.c +++ b/adg/adg-dress.c @@ -53,6 +53,7 @@ #include "adg-line-style.h" #include "adg-font-style.h" #include "adg-dim-style.h" +#include "adg-arrow.h" static AdgDress quark_to_dress (GQuark quark); @@ -661,10 +662,16 @@ _adg_dress_dimension_regular(void) static AdgDress dress = 0; if (G_UNLIKELY(dress == 0)) { + AdgMarker *arrow = g_object_new(ADG_TYPE_ARROW, NULL); AdgStyle *style = g_object_new(ADG_TYPE_DIM_STYLE, NULL); + adg_dim_style_use_marker1((AdgDimStyle *) style, arrow); + adg_marker_set_pos(arrow, 1); + adg_dim_style_use_marker2((AdgDimStyle *) style, arrow); + dress = adg_dress_new("dimension-regular", style); g_object_unref(style); + g_object_unref(arrow); } return dress; -- 2.11.4.GIT