summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix.cc
AgeCommit message (Collapse)Author
2013-08-24fix merge conflicts from masterPaul Davis
2013-08-03fix gtk "child->parent == NULL" assertsRobin Gareus
2013-08-03disallow invalid port-removalRobin Gareus
do not allow port-removal if the port would be re-added immediately after that again because the main-delivery actually needs it. As a side effect this prevents this crash: * create a stereo-track, then remove one output -> unhandled exception "AudioEngine::PortRegistrationFailure&" The problem: - the port is removed from the RCU ports list, but Port::drop() (which calls jack_port_unregister) is only called from the Port's destructor at some later time. (because a reference to the port still exists elsewhere) - the jack-port is not yet removed. - meanwhile Delivery::configure_io comes along and notices that there are more audio-buffers than ports and tries to re-register the port. - but the port still exists in jack, so it fails and throws an exception ...which is not handled.
2013-08-02Merge branch 'master' into windowsPaul Davis
2013-08-02keep port-matrix in sync when deleting ports. and fix segfault on session ↵Robin Gareus
close with io-matrix visible
2013-07-11Fix ambiguous type CheckMenuItem that is also defined via windows.hPaul Davis
2013-07-10amend to 212d2ac5d and 8becd4413 - fix port connection matrix crash on closeRobin Gareus
2012-10-23escape markup text that may contain non-legal characters (for GMarkup). this ↵Paul Davis
may need to be done more widely git-svn-id: svn://localhost/ardour2/branches/3.0@13318 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-27first pass at the big rethink of managing sort order keys for editor and ↵Paul Davis
mixer. this appears to work, but remote control IDs are not yet correct (frequently off by one because of the presence of the master bus in the editor) git-svn-id: svn://localhost/ardour2/branches/3.0@12953 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-20Add a menu option and key press (F) in port matrices to flip the selected ↵Carl Hetherington
row and columns in the matrix. git-svn-id: svn://localhost/ardour2/branches/3.0@12804 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-14Fix crash on close.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@12719 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-21Slightly hacky improvement to embolden the labels ofCarl Hetherington
connection matrix tabs when they have connections. git-svn-id: svn://localhost/ardour2/branches/3.0@12371 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-21Fix assertion failure on some right-clicks.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@12360 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-20Rename can_add_channel slightly and add mysteriously-missing calls to it so ↵Carl Hetherington
that you don't get offered the chance to add ports where none can be added. git-svn-id: svn://localhost/ardour2/branches/3.0@12349 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-20Display hardware IO individually in the port matrices unless we are in ↵Carl Hetherington
_show_only_bundles mode. git-svn-id: svn://localhost/ardour2/branches/3.0@12348 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-02a variety of mostly unused parameter errors from OS X Lion's compilerPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@12148 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-25remove the apparently unnecessary "ui_bind()" macro from entire source basePaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@12088 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-07Check that adding a port to an IO is ok with the processorsCarl Hetherington
in its route, and raise an error if not (part of #4535). git-svn-id: svn://localhost/ardour2/branches/3.0@10938 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-02Re-allow adding ports to empty bundles (#4408), and fix disassociation ↵Carl Hetherington
(disconnection) menu options as well. git-svn-id: svn://localhost/ardour2/branches/3.0@10388 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-01Fix out-of-whack notebook tabs wrt their contents in certain port matrices, ↵Carl Hetherington
broken by my recent tinkering (#4422). git-svn-id: svn://localhost/ardour2/branches/3.0@10384 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-31Reverse the order of vertical tabs in the port matrixCarl Hetherington
when they are on the right hand side, for reasons explained in the comment. git-svn-id: svn://localhost/ardour2/branches/3.0@10366 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-28Use shared_ptr for Port in the AudioEngine; improves thread-safety of the ↵Carl Hetherington
audio engine's port list as a writer cannot destroy a port in one thread while the port list is being iterated in another. git-svn-id: svn://localhost/ardour2/branches/3.0@10327 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-09-27Fix assertion failure on clicking on bundles whose channels are all of the ↵Carl Hetherington
wrong type. git-svn-id: svn://localhost/ardour2/branches/3.0@10147 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-08-14Hopefully fix follow-up bug in #4209.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@9989 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-08-13Stop bundles disappearing from the port matrix when theyCarl Hetherington
have no channels (#4209). Also fix the remove all channels menu option. git-svn-id: svn://localhost/ardour2/branches/3.0@9986 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-06-01Delete trailing whitespaceDavid Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@9656 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-02-24don't show remove port options for individual ports if there is only one ↵Paul Davis
(port matrix) git-svn-id: svn://localhost/ardour2/branches/3.0@8951 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-01-29Fix crash on unchecking show individual ports (#3740).Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@8607 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-10Fix crash on mouseover.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@8236 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-12-03Offer options to add un-natural port types to routes. Sort of helps with #3578.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@8169 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-11-25Prevent removal of route inputs when the plugins cannot be configured with ↵Carl Hetherington
the new number. Rework locking so that the process lock is held from the point that a route input is removed until after the processors are reconfigured; fixes #3548. git-svn-id: svn://localhost/ardour2/branches/3.0@8089 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-06Another hacky fix for deadlocks when updating the port matrix.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7747 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-24Setup tab directions correctly depending on where they are located.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7676 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-24Put a bit of padding between the tabs and the window edge.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7675 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-24Tweak arrangement of labels and tabs in port matrices.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7674 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-24Fix port matrix menu checkbox when the window is closed. Make the port ↵Carl Hetherington
matrix origin the bottom left when tabs are on left and bottom. Don't shrink the port matrix when auto-resizing it. git-svn-id: svn://localhost/ardour2/branches/3.0@7673 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-27Improve resize behaviour of port matrices when their content size changes.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7507 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-27Fix route port matrix to only display the relevant port types.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7505 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-21Sort tracks in the port matrix according to editor order. Fixes #2966.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7458 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-01Allow port matrix to show both audio and midi ports at the same time, and ↵Carl Hetherington
use that facility for route IO selectors. git-svn-id: svn://localhost/ardour2/branches/3.0@7344 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-06-30Basic tweaks to make the bundles and the port matrix accept that MIDI tracks ↵Carl Hetherington
may have audio IO, and vice versa. Allows connection of instrument tracks using the global port matrix. git-svn-id: svn://localhost/ardour2/branches/3.0@7335 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-05-08Remove use of i18n macros in headers. Prevents our gettext.h being included ↵Carl Hetherington
before libintl.h, which causes failures when ENABLE_NLS is not defined (bug #3111) git-svn-id: svn://localhost/ardour2/branches/3.0@7081 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-05Make port matrix notice when connections are changed outside of ardour.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@6858 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-30handle deletion of UI objects between the time that a callback is queued ↵Paul Davis
with the UI event loop and the execution of the callback (intrusive, big) git-svn-id: svn://localhost/ardour2/branches/3.0@6807 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-01-15Escape underscores in port matrix menus correctly so that track names etc. ↵Carl Hetherington
with underscores get displayed properly. git-svn-id: svn://localhost/ardour2/branches/3.0@6491 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-22Add remove all and disconnect all to port matrix menu. Hide bundles whose ↵Carl Hetherington
channels are already represented by other, larger bundles. git-svn-id: svn://localhost/ardour2/branches/3.0@6381 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-21fully implement and deploy explicit x-thread signal connection syntax ↵Paul Davis
(testing comes next) git-svn-id: svn://localhost/ardour2/branches/3.0@6379 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-19use new syntax for connecting to backend signals that enforces explicit ↵Paul Davis
connection scope, plus a few other related matters git-svn-id: svn://localhost/ardour2/branches/3.0@6376 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-17switch to using boost::signals2 instead of sigc++, at least for libardour. ↵Paul Davis
not finished yet, but compiles, loads sessions, records and can close a session without a crash git-svn-id: svn://localhost/ardour2/branches/3.0@6372 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-14Offer all of a bundle's ports for disconnection / removal when opening a ↵Carl Hetherington
menu over a bundle's name in the port matrix. git-svn-id: svn://localhost/ardour2/branches/3.0@6365 d708f5d6-7413-0410-9779-e7cbd77b26cf