diff options
Diffstat (limited to 'ganv/Edge.hpp')
-rw-r--r-- | ganv/Edge.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ganv/Edge.hpp b/ganv/Edge.hpp index e220d95..350a617 100644 --- a/ganv/Edge.hpp +++ b/ganv/Edge.hpp @@ -61,14 +61,12 @@ public: {} virtual ~Edge() { - if (_gobj && _gobj->parent) { + if (_gobj && ganv_item_get_parent(_gobj)) { g_object_unref(_gobj); } } - /** Return true iff the handle is within the given rectangle. */ - virtual gboolean is_within(double x1, double y1, - double x2, double y2) const { + gboolean is_within(double x1, double y1, double x2, double y2) const { return ganv_edge_is_within(gobj(), x1, y1, x2, y2); } @@ -81,8 +79,6 @@ public: METHODRETWRAP0(ganv_edge, Node*, get_tail); METHODRETWRAP0(ganv_edge, Node*, get_head); - METHOD1(ganv_edge, tick, double, seconds); - GanvEdge* gobj() { return (GanvEdge*)_gobj; } const GanvEdge* gobj() const { return (GanvEdge*)_gobj; } |