[dia] [gradient] actually use (DiaRenderer::)set_pattern



commit f83e0816c917fee5a3645ec10694bff0eee6c9a5
Author: Hans Breuer <hans breuer org>
Date:   Wed Dec 25 11:06:58 2013 +0100

    [gradient] actually use (DiaRenderer::)set_pattern
    
    no harm for the main use case, because that checked RENDER_PATTERN
    availability before calling the member function

 lib/diarenderer.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/diarenderer.c b/lib/diarenderer.c
index f986b83..5c31c33 100644
--- a/lib/diarenderer.c
+++ b/lib/diarenderer.c
@@ -173,6 +173,8 @@ static void draw_bezier_with_arrows (DiaRenderer *renderer,
 
 static gboolean is_capable_to (DiaRenderer *renderer, RenderCapability cap);
 
+static void set_pattern (DiaRenderer *renderer, DiaPattern *pat);
+
 static gpointer parent_class = NULL;
 
 GType
@@ -351,6 +353,7 @@ dia_renderer_class_init (DiaRendererClass *klass)
   
   /* other */
   renderer_class->is_capable_to = is_capable_to;
+  renderer_class->set_pattern = set_pattern;
 }
 
 static void 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]