diff options
Diffstat (limited to 'src/gtkext/graph')
| -rw-r--r-- | src/gtkext/graph/edge.c | 29 | ||||
| -rw-r--r-- | src/gtkext/graph/edge.h | 5 | ||||
| -rw-r--r-- | src/gtkext/graph/layout.c | 28 | ||||
| -rw-r--r-- | src/gtkext/graph/layout.h | 5 | 
4 files changed, 5 insertions, 62 deletions
| diff --git a/src/gtkext/graph/edge.c b/src/gtkext/graph/edge.c index 4aedbde..8540c19 100644 --- a/src/gtkext/graph/edge.c +++ b/src/gtkext/graph/edge.c @@ -401,33 +401,6 @@ void g_graph_edge_compute(GGraphEdge *edge, GGraphRanks *ranks)  /******************************************************************************  *                                                                             * -*  Paramètres  : edge     = ligne de rendu à manipuler.                       * -*                drawable = surface de rendu à utiliser.                      * -*                gc       = contexte graphique du dessin.                     * -*                                                                             * -*  Description : Dessine les liens graphiques enregistrés dans le moteur.     * -*                                                                             * -*  Retour      : -                                                            * -*                                                                             * -*  Remarques   : -                                                            * -*                                                                             * -******************************************************************************/ - -void g_graph_edge_draw(const GGraphEdge *edge, GdkDrawable *drawable, GdkGC *gc) -{ -    cairo_t *cairo;                         /* Gestionnaire de rendu       */ - -    cairo = gdk_cairo_create(drawable); - -    _g_graph_edge_draw(edge, cairo, true); - -    cairo_destroy(cairo); - -} - - -/****************************************************************************** -*                                                                             *  *  Paramètres  : edge  = ligne de rendu à manipuler.                          *  *                cairo = assistant pour le rendu graphique.                   *  *                arrow = indique le besoin en flèche à l'arrivée.             * @@ -440,7 +413,7 @@ void g_graph_edge_draw(const GGraphEdge *edge, GdkDrawable *drawable, GdkGC *gc)  *                                                                             *  ******************************************************************************/ -void _g_graph_edge_draw(const GGraphEdge *edge, cairo_t *cairo, bool arrow) +void g_graph_edge_draw(const GGraphEdge *edge, cairo_t *cairo, bool arrow)  {      size_t i;                               /* Boucle de parcours          */ diff --git a/src/gtkext/graph/edge.h b/src/gtkext/graph/edge.h index 12dcfdc..f6f0acf 100644 --- a/src/gtkext/graph/edge.h +++ b/src/gtkext/graph/edge.h @@ -77,10 +77,7 @@ void g_graph_edge_reserve_horizontal_space(GGraphEdge *, GGraphRanks *);  void g_graph_edge_compute(GGraphEdge *, GGraphRanks *);  /* Dessine les liens graphiques enregistrés dans le moteur. */ -void g_graph_edge_draw(const GGraphEdge *, GdkDrawable *, GdkGC *); - -/* Dessine les liens graphiques enregistrés dans le moteur. */ -void _g_graph_edge_draw(const GGraphEdge *, cairo_t *, bool); +void g_graph_edge_draw(const GGraphEdge *, cairo_t *, bool); diff --git a/src/gtkext/graph/layout.c b/src/gtkext/graph/layout.c index 9ac3ee3..0d4f7b3 100644 --- a/src/gtkext/graph/layout.c +++ b/src/gtkext/graph/layout.c @@ -789,30 +789,6 @@ void g_graph_layout_size_request(const GGraphLayout *layout, GtkRequisition *req  /******************************************************************************  *                                                                             * -*  Paramètres  : layout   = graphique à représenter.                          * -*                drawable = surface de rendu à utiliser.                      * -*                gc       = contexte graphique du dessin.                     * -*                                                                             * -*  Description : Dessine les liens graphiques enregistrés dans le moteur.     * -*                                                                             * -*  Retour      : -                                                            * -*                                                                             * -*  Remarques   : -                                                            * -*                                                                             * -******************************************************************************/ - -void g_graph_layout_draw(const GGraphLayout *layout, GdkDrawable *drawable, GdkGC *gc) -{ -    size_t i;                               /* Boucle de parcours          */ - -    for (i = 0; i < layout->edges_count; i++) -        g_graph_edge_draw(layout->edges[i], drawable, gc); - -} - - -/****************************************************************************** -*                                                                             *  *  Paramètres  : layout = graphique à représenter.                            *  *                cairo  = assistant pour le rendu graphique.                  *  *                arrow  = indique le besoin en flèche à l'arrivée.            * @@ -825,11 +801,11 @@ void g_graph_layout_draw(const GGraphLayout *layout, GdkDrawable *drawable, GdkG  *                                                                             *  ******************************************************************************/ -void _g_graph_layout_draw(const GGraphLayout *layout, cairo_t *cairo, bool arrow) +void g_graph_layout_draw(const GGraphLayout *layout, cairo_t *cairo, bool arrow)  {      size_t i;                               /* Boucle de parcours          */      for (i = 0; i < layout->edges_count; i++) -        _g_graph_edge_draw(layout->edges[i], cairo, arrow); +        g_graph_edge_draw(layout->edges[i], cairo, arrow);  } diff --git a/src/gtkext/graph/layout.h b/src/gtkext/graph/layout.h index 8aade99..6055a04 100644 --- a/src/gtkext/graph/layout.h +++ b/src/gtkext/graph/layout.h @@ -79,10 +79,7 @@ void g_graph_layout_place(GGraphLayout *, GtkGraphView *);  void g_graph_layout_size_request(const GGraphLayout *, GtkRequisition *);  /* Dessine les liens graphiques enregistrés dans le moteur. */ -void g_graph_layout_draw(const GGraphLayout *, GdkDrawable *, GdkGC *); - -/* Dessine les liens graphiques enregistrés dans le moteur. */ -void _g_graph_layout_draw(const GGraphLayout *, cairo_t *, bool); +void g_graph_layout_draw(const GGraphLayout *, cairo_t *, bool); | 
