diff options
Diffstat (limited to 'src/gtkext/graph')
-rw-r--r-- | src/gtkext/graph/dot.c | 2 | ||||
-rw-r--r-- | src/gtkext/graph/layout.c | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/gtkext/graph/dot.c b/src/gtkext/graph/dot.c index 64ca2b5..18c4800 100644 --- a/src/gtkext/graph/dot.c +++ b/src/gtkext/graph/dot.c @@ -223,6 +223,8 @@ GtkLinkRenderer **create_links_from_graph_layout(const graph_layout *layout, siz color = LKC_GREEN; else if (strcmp("red", eiter->attr[attrib->index]) == 0) color = LKC_RED; + else if (strcmp("blue", eiter->attr[attrib->index]) == 0) + color = LKC_BLUE; else if (strcmp("gray", eiter->attr[attrib->index]) == 0) color = LKC_DASHED_GRAY; } diff --git a/src/gtkext/graph/layout.c b/src/gtkext/graph/layout.c index 87ae2ec..1748c40 100644 --- a/src/gtkext/graph/layout.c +++ b/src/gtkext/graph/layout.c @@ -282,6 +282,14 @@ static char *complete_graph_links(const GtkGraphView *view, GtkViewPanel **views desc = stradd(desc, cmd); break; + case ILT_LOOP: + snprintf(cmd, LINKS_DESC_LEN, + "_%p:s -> _%p:n [ltail=cluster_%p, lhead=cluster_%p, " \ + "color=blue];\n", + views[i], views[k], views[i], views[k]); + desc = stradd(desc, cmd); + break; + case ILT_CATCH_EXCEPTION: snprintf(cmd, LINKS_DESC_LEN, "_%p:s -> _%p:n [ltail=cluster_%p, lhead=cluster_%p, " \ |