summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ganv/Canvas.hpp2
-rw-r--r--ganv/canvas.h4
-rw-r--r--src/Canvas.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/ganv/Canvas.hpp b/ganv/Canvas.hpp
index 7d12286..bee0b22 100644
--- a/ganv/Canvas.hpp
+++ b/ganv/Canvas.hpp
@@ -55,7 +55,7 @@ public:
Canvas(double width, double height);
virtual ~Canvas();
- METHOD0(ganv_canvas, destroy);
+ METHOD0(ganv_canvas, clear);
METHOD0(ganv_canvas, clear_selection);
METHOD0(ganv_canvas, select_all);
METHOD0(ganv_canvas, get_zoom);
diff --git a/ganv/canvas.h b/ganv/canvas.h
index bac6597..cda7c1a 100644
--- a/ganv/canvas.h
+++ b/ganv/canvas.h
@@ -209,11 +209,11 @@ ganv_canvas_for_each_edge_on(GanvCanvas* canvas,
void* data);
/**
- * ganv_canvas_destroy:
+ * ganv_canvas_clear:
* Remove all items from the canvas.
*/
void
-ganv_canvas_destroy(GanvCanvas* canvas);
+ganv_canvas_clear(GanvCanvas* canvas);
/**
* ganv_canvas_select_all:
diff --git a/src/Canvas.cpp b/src/Canvas.cpp
index 7daf8e7..61e4376 100644
--- a/src/Canvas.cpp
+++ b/src/Canvas.cpp
@@ -1498,7 +1498,7 @@ Canvas::Canvas(double width, double height)
Canvas::~Canvas()
{
_animate_connection.disconnect();
- destroy();
+ clear();
delete impl();
}
@@ -2051,7 +2051,7 @@ ganv_canvas_port_event(GanvCanvas* canvas,
}
void
-ganv_canvas_destroy(GanvCanvas* canvas)
+ganv_canvas_clear(GanvCanvas* canvas)
{
canvas->impl->_selected_items.clear();
canvas->impl->_selected_edges.clear();