diff options
author | David Robillard <d@drobilla.net> | 2013-06-09 16:54:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-06-09 16:54:57 +0000 |
commit | 2690f9ceb82537e921a33410f55bbdc065a872e1 (patch) | |
tree | b6c14aed49ff98c202688f3c0e0a37b254697fdf /ganv | |
parent | 0b266cf96ac04eb9052df6d102e5defafc1b30b0 (diff) | |
download | ganv-2690f9ceb82537e921a33410f55bbdc065a872e1.tar.gz ganv-2690f9ceb82537e921a33410f55bbdc065a872e1.tar.bz2 ganv-2690f9ceb82537e921a33410f55bbdc065a872e1.zip |
Fix compilation with --jack-dbus (#917).
I don't know why I maintain this or what the point of it is...
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5141 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ganv')
-rw-r--r-- | ganv/Canvas.hpp | 1 | ||||
-rw-r--r-- | ganv/canvas.h | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ganv/Canvas.hpp b/ganv/Canvas.hpp index bee0b22..7b71642 100644 --- a/ganv/Canvas.hpp +++ b/ganv/Canvas.hpp @@ -71,6 +71,7 @@ public: METHOD2(ganv_canvas, resize, double, width, double, height); METHOD2(ganv_canvas, for_each_node, GanvNodeFunc, f, void*, data) METHOD2(ganv_canvas, for_each_selected_node, GanvNodeFunc, f, void*, data) + METHODRET0(ganv_canvas, gboolean, empty) METHOD3(ganv_canvas, for_each_edge_from, const GanvNode*, tail, diff --git a/ganv/canvas.h b/ganv/canvas.h index 6d946f4..b569eeb 100644 --- a/ganv/canvas.h +++ b/ganv/canvas.h @@ -166,6 +166,14 @@ ganv_canvas_for_each_selected_node(GanvCanvas* canvas, void* data); /** + * ganv_canvas_empty: + + * Return value: True if there are no items on the canvas. + */ +gboolean +ganv_canvas_empty(const GanvCanvas* canvas); + +/** * ganv_canvas_for_each_edge: * @canvas: The canvas. * @f: (scope call): A function to call on every edge on @canvas. |