summaryrefslogtreecommitdiffstats
path: root/ganv/Edge.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ganv/Edge.hpp')
-rw-r--r--ganv/Edge.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ganv/Edge.hpp b/ganv/Edge.hpp
index ee2423c..6912eb2 100644
--- a/ganv/Edge.hpp
+++ b/ganv/Edge.hpp
@@ -46,7 +46,6 @@ public:
bool show_arrowhead = false,
bool curved = true)
: Item(GANV_ITEM(
- g_object_ref(
ganv_edge_new(
canvas.gobj(),
tail->gobj(),
@@ -54,11 +53,12 @@ public:
"color", color,
"curved", (gboolean)curved,
"arrowhead", (gboolean)show_arrowhead,
- NULL))))
- {}
+ NULL)))
+ {
+ }
Edge(GanvEdge* gobj)
- : Item(GANV_ITEM(g_object_ref(gobj)))
+ : Item(GANV_ITEM(gobj))
{}
virtual ~Edge() {