diff options
author | David Robillard <d@drobilla.net> | 2011-12-07 21:23:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-07 21:23:49 +0000 |
commit | 1acfac387f6851c881ef89ba4728d69a9e115b22 (patch) | |
tree | 0f764c55ba0933da0912af578f3ad91cd9b56b07 /src/ganv_test.c | |
parent | e7f70685cbac6fd89fb1872372fad594c4ec22b7 (diff) | |
download | ganv-1acfac387f6851c881ef89ba4728d69a9e115b22.tar.gz ganv-1acfac387f6851c881ef89ba4728d69a9e115b22.tar.bz2 ganv-1acfac387f6851c881ef89ba4728d69a9e115b22.zip |
Fix control port dragging.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3831 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/ganv_test.c')
-rw-r--r-- | src/ganv_test.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ganv_test.c b/src/ganv_test.c index a2df8af..4c1fc40 100644 --- a/src/ganv_test.c +++ b/src/ganv_test.c @@ -44,6 +44,17 @@ main(int argc, char** argv) "label", "test", NULL); + GanvPort* cport = ganv_port_new(module, TRUE, + "label", "Control", + NULL); + ganv_port_show_control(cport); + + GanvPort* tport = ganv_port_new(module, TRUE, + "label", "Toggle", + NULL); + ganv_port_show_control(tport); + ganv_port_set_control_is_toggle(tport, TRUE); + gnome_canvas_item_show(GNOME_CANVAS_ITEM(module)); gnome_canvas_item_raise_to_top(GNOME_CANVAS_ITEM(module)); |