diff options
author | David Robillard <d@drobilla.net> | 2013-02-03 22:29:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-03 22:29:15 +0000 |
commit | 6ddaa0260c4749aa6c0395000381d7df0bd3feb1 (patch) | |
tree | 00024d5d970317292355b663383b43d151c6757b /src/edge.c | |
parent | 39b748a4836d6220922867eae0dd5339792033ab (diff) | |
download | ganv-6ddaa0260c4749aa6c0395000381d7df0bd3feb1.tar.gz ganv-6ddaa0260c4749aa6c0395000381d7df0bd3feb1.tar.bz2 ganv-6ddaa0260c4749aa6c0395000381d7df0bd3feb1.zip |
Port control performance improvements (further improvement for #879).
Only request a redraw, not a full update, where appropriate.
Use a raw double instead of GVariant for port control-changed signal.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5045 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/edge.c')
-rw-r--r-- | src/edge.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -647,16 +647,14 @@ void ganv_edge_highlight(GanvEdge* edge) { edge->impl->highlighted = TRUE; - ganv_item_raise(GANV_ITEM(edge)); - ganv_item_request_update(GANV_ITEM(edge)); + ganv_edge_request_redraw(GANV_ITEM(edge)->canvas, &edge->impl->coords); } void ganv_edge_unhighlight(GanvEdge* edge) { edge->impl->highlighted = FALSE; - ganv_item_lower(GANV_ITEM(edge)); - ganv_item_request_update(GANV_ITEM(edge)); + ganv_edge_request_redraw(GANV_ITEM(edge)->canvas, &edge->impl->coords); } void |