ardour.git
11 years agoA (hopefully) better fix for toggle-mixer-on-top, using gtk_window_is_active() to...
Colin Fletcher [Wed, 27 Jun 2012 12:21:23 +0000 (12:21 +0000)]
A (hopefully) better fix for toggle-mixer-on-top, using gtk_window_is_active() to work out whether the mixer is already on top.

git-svn-id: svn://localhost/ardour2/branches/3.0@12952 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agosome generic midi debugging plus an assert
Paul Davis [Tue, 26 Jun 2012 20:49:52 +0000 (20:49 +0000)]
some generic midi debugging plus an assert

git-svn-id: svn://localhost/ardour2/branches/3.0@12950 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agofix up some issues introduced by lifecycle tracking of Controllable in Generic MIDI...
Paul Davis [Tue, 26 Jun 2012 19:10:11 +0000 (19:10 +0000)]
fix up some issues introduced by lifecycle tracking of Controllable in Generic MIDI control code

git-svn-id: svn://localhost/ardour2/branches/3.0@12947 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agocorrectly(?) set number of process thread buffers based on run-time-discovered num...
Paul Davis [Tue, 26 Jun 2012 18:58:39 +0000 (18:58 +0000)]
correctly(?)  set number of process thread buffers based on run-time-discovered num-cpus (#4951)

git-svn-id: svn://localhost/ardour2/branches/3.0@12946 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoAdd test for loading sessions, and a session with a
Carl Hetherington [Tue, 26 Jun 2012 18:47:20 +0000 (18:47 +0000)]
Add test for loading sessions, and a session with a
rec-enabled track that currently crashes.

git-svn-id: svn://localhost/ardour2/branches/3.0@12945 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoFix uninitialised variable.
Carl Hetherington [Tue, 26 Jun 2012 17:58:20 +0000 (17:58 +0000)]
Fix uninitialised variable.

git-svn-id: svn://localhost/ardour2/branches/3.0@12944 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoAlternate Korg nanoKONTROL map from JaaxxOne (#4954).
Carl Hetherington [Tue, 26 Jun 2012 17:14:49 +0000 (17:14 +0000)]
Alternate Korg nanoKONTROL map from JaaxxOne (#4954).

git-svn-id: svn://localhost/ardour2/branches/3.0@12943 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoPatch from JaaxxOne to fix rec-enable toggle with the
Carl Hetherington [Tue, 26 Jun 2012 17:13:13 +0000 (17:13 +0000)]
Patch from JaaxxOne to fix rec-enable toggle with the
Korg nanoKONTROL (#4953).

git-svn-id: svn://localhost/ardour2/branches/3.0@12942 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoNudge the time axis view gain slider up a bit.
Carl Hetherington [Tue, 26 Jun 2012 17:03:38 +0000 (17:03 +0000)]
Nudge the time axis view gain slider up a bit.

git-svn-id: svn://localhost/ardour2/branches/3.0@12941 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused named selection / chunk code.
Carl Hetherington [Tue, 26 Jun 2012 02:11:06 +0000 (02:11 +0000)]
Remove unused named selection / chunk code.

git-svn-id: svn://localhost/ardour2/branches/3.0@12939 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agodisconnect from a Controllable when it is destroyed
Paul Davis [Tue, 26 Jun 2012 01:55:53 +0000 (01:55 +0000)]
disconnect from a Controllable when it is destroyed

git-svn-id: svn://localhost/ardour2/branches/3.0@12938 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoFix some oddities with playhead movement when locating
Carl Hetherington [Tue, 26 Jun 2012 01:40:34 +0000 (01:40 +0000)]
Fix some oddities with playhead movement when locating
during roll.

git-svn-id: svn://localhost/ardour2/branches/3.0@12937 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoSome spelling mistake fixes from Debian.
Carl Hetherington [Tue, 26 Jun 2012 01:40:27 +0000 (01:40 +0000)]
Some spelling mistake fixes from Debian.

git-svn-id: svn://localhost/ardour2/branches/3.0@12936 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoadd rodrigo to the authors list
Paul Davis [Tue, 26 Jun 2012 01:29:27 +0000 (01:29 +0000)]
add rodrigo to the authors list

git-svn-id: svn://localhost/ardour2/branches/3.0@12935 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoAllow new idle visual changer calls to be requested while
Carl Hetherington [Tue, 26 Jun 2012 00:07:45 +0000 (00:07 +0000)]
Allow new idle visual changer calls to be requested while
the current changer is executing; fixes #4567.

git-svn-id: svn://localhost/ardour2/branches/3.0@12934 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoPatch from johan_mattsson_m to be more graceful if there
Carl Hetherington [Mon, 25 Jun 2012 21:19:21 +0000 (21:19 +0000)]
Patch from johan_mattsson_m to be more graceful if there
is an undo record which references a non-existant
object; this shouldn't happen, of course, but there was
a bug in some early betas which made it occur (#4920).

git-svn-id: svn://localhost/ardour2/branches/3.0@12930 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoPatch from tophatdave to prevent exit from note edit
Carl Hetherington [Mon, 25 Jun 2012 21:19:06 +0000 (21:19 +0000)]
Patch from tophatdave to prevent exit from note edit
mode on double-click with a modifier held down;
prevents creation of malformed notes (#4664).

git-svn-id: svn://localhost/ardour2/branches/3.0@12929 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoTry slightly narrower faders in the track controls area
Carl Hetherington [Mon, 25 Jun 2012 20:32:14 +0000 (20:32 +0000)]
Try slightly narrower faders in the track controls area
(#4445).

git-svn-id: svn://localhost/ardour2/branches/3.0@12928 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoPatch from royvegard to add a set-bank midi function
Carl Hetherington [Mon, 25 Jun 2012 19:26:00 +0000 (19:26 +0000)]
Patch from royvegard to add a set-bank midi function
(#4949).

git-svn-id: svn://localhost/ardour2/branches/3.0@12927 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoDon't specify real-time priority when starting JACK (#4946).
Carl Hetherington [Mon, 25 Jun 2012 14:41:03 +0000 (14:41 +0000)]
Don't specify real-time priority when starting JACK (#4946).

git-svn-id: svn://localhost/ardour2/branches/3.0@12924 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agodrastic rethink of the relationship between remote control ID and route order keys...
Paul Davis [Mon, 25 Jun 2012 12:46:13 +0000 (12:46 +0000)]
drastic rethink of the relationship between remote control ID and route order keys. unless the user explicitly switches to UserOrdered, Route::_remote_control_id is an unallocated pointer, and Route::remote_control_id() simply returns a value based on the relevant order_key() value. Also, change the key used in the Route::order_keys std::map<> from a string to an enum, since there is no evidence that we are benefitting from the theoretical benefit of using a string. Generally tidy up allocation of order keys so that the master and monitor busses always get a "special" MixerSort key value, based on the MMC ID for master (already defined within Ardour), and all other tracks/busses start at zero. Syncing keys between editor and mixer will leave the MixerSort key for the master and monitor bus alone, reflecting the fact that we display these in their own distinct parts of the GUI and they are not orderable like other tracks or busses within the mixer window

git-svn-id: svn://localhost/ardour2/branches/3.0@12923 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoCreate diskstream before calling Route::set_state, the
Carl Hetherington [Mon, 25 Jun 2012 12:39:25 +0000 (12:39 +0000)]
Create diskstream before calling Route::set_state, the
set_state causes muted MIDI tracks to look up their
diskstream (#4947).

git-svn-id: svn://localhost/ardour2/branches/3.0@12922 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoadd late/lazy binding between generic MIDI bindings and controllable elements in...
Paul Davis [Mon, 25 Jun 2012 12:33:13 +0000 (12:33 +0000)]
add late/lazy binding between generic MIDI bindings and controllable elements in the session. this allows you to load a binding map that refers to elements that have not yet been created in the session, and when they are created, the binding will work

git-svn-id: svn://localhost/ardour2/branches/3.0@12921 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove some excess commas from the export format description
Sakari Bergen [Sun, 24 Jun 2012 20:00:30 +0000 (20:00 +0000)]
Remove some excess commas from the export format description

git-svn-id: svn://localhost/ardour2/branches/3.0@12920 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoInrease the export "chunk size" to speed it up over 10% at least in some situations
Sakari Bergen [Sun, 24 Jun 2012 19:45:20 +0000 (19:45 +0000)]
Inrease the export "chunk size" to speed it up over 10% at least in some situations

git-svn-id: svn://localhost/ardour2/branches/3.0@12919 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRevert to using SSE mix-buffers-with-gain rather than simple
Carl Hetherington [Sun, 24 Jun 2012 17:12:06 +0000 (17:12 +0000)]
Revert to using SSE mix-buffers-with-gain rather than simple
one.

git-svn-id: svn://localhost/ardour2/branches/3.0@12918 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoChange logic for compiling export format descriptions from incomplete formats
Sakari Bergen [Sun, 24 Jun 2012 13:57:20 +0000 (13:57 +0000)]
Change logic for compiling export format descriptions from incomplete formats

git-svn-id: svn://localhost/ardour2/branches/3.0@12917 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoFix stem export. The capturing processor of routes was never removed, and was restore...
Sakari Bergen [Sun, 24 Jun 2012 13:38:42 +0000 (13:38 +0000)]
Fix stem export. The capturing processor of routes was never removed, and was restored inactive, which made stem export fail.

git-svn-id: svn://localhost/ardour2/branches/3.0@12916 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agounused variable warning
Paul Davis [Sun, 24 Jun 2012 12:57:08 +0000 (12:57 +0000)]
unused variable warning

git-svn-id: svn://localhost/ardour2/branches/3.0@12915 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoput patch chnage dialog under the mouse cursor when it appears
Paul Davis [Sun, 24 Jun 2012 12:56:56 +0000 (12:56 +0000)]
put patch chnage dialog under the mouse cursor when it appears

git-svn-id: svn://localhost/ardour2/branches/3.0@12914 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agostring fix, plus a tweak to handling variable i/o AUs
Paul Davis [Sun, 24 Jun 2012 12:50:38 +0000 (12:50 +0000)]
string fix, plus a tweak to handling variable i/o AUs

git-svn-id: svn://localhost/ardour2/branches/3.0@12913 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agostring fix
Paul Davis [Sun, 24 Jun 2012 12:49:53 +0000 (12:49 +0000)]
string fix

git-svn-id: svn://localhost/ardour2/branches/3.0@12912 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoIn export format dialog, show preview of generated part of description. Fix to #0004941
Sakari Bergen [Sun, 24 Jun 2012 11:36:33 +0000 (11:36 +0000)]
In export format dialog, show preview of generated part of description. Fix to #0004941

git-svn-id: svn://localhost/ardour2/branches/3.0@12911 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoFix build.
Carl Hetherington [Sat, 23 Jun 2012 12:54:11 +0000 (12:54 +0000)]
Fix build.

git-svn-id: svn://localhost/ardour2/branches/3.0@12910 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused utility function ARDOUR::create_session_directory
Tim Mayberry [Sat, 23 Jun 2012 07:33:36 +0000 (07:33 +0000)]
Remove unused utility function ARDOUR::create_session_directory

git-svn-id: svn://localhost/ardour2/branches/3.0@12909 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse SessionDirectory class directly rather than ARDOUR::create_session_directory
Tim Mayberry [Sat, 23 Jun 2012 07:33:34 +0000 (07:33 +0000)]
Use SessionDirectory class directly rather than ARDOUR::create_session_directory

git-svn-id: svn://localhost/ardour2/branches/3.0@12908 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoChange the meaning of the return value in SessionDirectory::create
Tim Mayberry [Sat, 23 Jun 2012 07:33:31 +0000 (07:33 +0000)]
Change the meaning of the return value in SessionDirectory::create

return true if the session directories were successfully created, not
if the session directory was previously invalid(new directory).

git-svn-id: svn://localhost/ardour2/branches/3.0@12907 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused pbd/filesystem.h/cc
Tim Mayberry [Sat, 23 Jun 2012 05:09:54 +0000 (05:09 +0000)]
Remove unused pbd/filesystem.h/cc

git-svn-id: svn://localhost/ardour2/branches/3.0@12906 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused or unnecessary header includes
Tim Mayberry [Sat, 23 Jun 2012 05:09:51 +0000 (05:09 +0000)]
Remove unused or unnecessary header includes

git-svn-id: svn://localhost/ardour2/branches/3.0@12905 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse std::string and Glib::build_filename in UIConfiguration::save_state
Tim Mayberry [Sat, 23 Jun 2012 05:09:48 +0000 (05:09 +0000)]
Use std::string and Glib::build_filename in UIConfiguration::save_state

git-svn-id: svn://localhost/ardour2/branches/3.0@12904 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse std::string and Glib::build_filename in gtk2_ardour
Tim Mayberry [Sat, 23 Jun 2012 05:09:46 +0000 (05:09 +0000)]
Use std::string and Glib::build_filename in gtk2_ardour

git-svn-id: svn://localhost/ardour2/branches/3.0@12903 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse std::string and Glib instead of pbd/filesystem.h in DeviceProfile
Tim Mayberry [Sat, 23 Jun 2012 05:09:44 +0000 (05:09 +0000)]
Use std::string and Glib instead of pbd/filesystem.h in DeviceProfile

git-svn-id: svn://localhost/ardour2/branches/3.0@12902 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse Glib instead of pbd/filesystem.h in GenericMidiControlProtocol
Tim Mayberry [Sat, 23 Jun 2012 05:09:42 +0000 (05:09 +0000)]
Use Glib instead of pbd/filesystem.h in GenericMidiControlProtocol

git-svn-id: svn://localhost/ardour2/branches/3.0@12901 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused header include
Tim Mayberry [Sat, 23 Jun 2012 05:09:39 +0000 (05:09 +0000)]
Remove unused header include

git-svn-id: svn://localhost/ardour2/branches/3.0@12900 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse std::string and Glib::build_filename in Session::save_template
Tim Mayberry [Sat, 23 Jun 2012 05:09:37 +0000 (05:09 +0000)]
Use std::string and Glib::build_filename in Session::save_template

git-svn-id: svn://localhost/ardour2/branches/3.0@12899 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse std::string and Glib::build_filename in Session::path_from_region_name
Tim Mayberry [Sat, 23 Jun 2012 05:09:35 +0000 (05:09 +0000)]
Use std::string and Glib::build_filename in Session::path_from_region_name

git-svn-id: svn://localhost/ardour2/branches/3.0@12898 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse std::string and Glib::build_filename in Session::load_state
Tim Mayberry [Sat, 23 Jun 2012 05:09:33 +0000 (05:09 +0000)]
Use std::string and Glib::build_filename in Session::load_state

git-svn-id: svn://localhost/ardour2/branches/3.0@12897 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse std::string and Glib::build_filename in Session::save_state
Tim Mayberry [Sat, 23 Jun 2012 05:09:31 +0000 (05:09 +0000)]
Use std::string and Glib::build_filename in Session::save_state

git-svn-id: svn://localhost/ardour2/branches/3.0@12896 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse std::string instead of sys::path in Session::jack_session_event
Tim Mayberry [Sat, 23 Jun 2012 05:09:28 +0000 (05:09 +0000)]
Use std::string instead of sys::path in Session::jack_session_event

git-svn-id: svn://localhost/ardour2/branches/3.0@12895 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse std::string instead of PBD::sys::path in Session::restore_history
Tim Mayberry [Sat, 23 Jun 2012 05:09:26 +0000 (05:09 +0000)]
Use std::string instead of PBD::sys::path in Session::restore_history

git-svn-id: svn://localhost/ardour2/branches/3.0@12894 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse Glib::build_filename in Session::new_midi_source_name()
Tim Mayberry [Sat, 23 Jun 2012 05:09:24 +0000 (05:09 +0000)]
Use Glib::build_filename in Session::new_midi_source_name()

git-svn-id: svn://localhost/ardour2/branches/3.0@12893 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused PBD:sys::create_directory/ies functions
Tim Mayberry [Sat, 23 Jun 2012 05:09:22 +0000 (05:09 +0000)]
Remove unused PBD:sys::create_directory/ies functions

git-svn-id: svn://localhost/ardour2/branches/3.0@12892 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse g_mkdir_with_parents instead of sys::create_directories
Tim Mayberry [Sat, 23 Jun 2012 05:09:19 +0000 (05:09 +0000)]
Use g_mkdir_with_parents instead of sys::create_directories

git-svn-id: svn://localhost/ardour2/branches/3.0@12891 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unnecessary code to create user_config_directory
Tim Mayberry [Sat, 23 Jun 2012 05:09:17 +0000 (05:09 +0000)]
Remove unnecessary code to create user_config_directory

git-svn-id: svn://localhost/ardour2/branches/3.0@12890 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoAdd doc note about postcondition of ARDOUR::user_config_directory()
Tim Mayberry [Sat, 23 Jun 2012 05:09:15 +0000 (05:09 +0000)]
Add doc note about postcondition of ARDOUR::user_config_directory()

git-svn-id: svn://localhost/ardour2/branches/3.0@12889 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unnecessary creation of user_config_directory
Tim Mayberry [Sat, 23 Jun 2012 05:09:13 +0000 (05:09 +0000)]
Remove unnecessary creation of user_config_directory

calling user_config_directory ensures it exists

git-svn-id: svn://localhost/ardour2/branches/3.0@12888 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove PBD::sys::is_directory and use Glib equivalent
Tim Mayberry [Sat, 23 Jun 2012 05:09:11 +0000 (05:09 +0000)]
Remove PBD::sys::is_directory and use Glib equivalent

git-svn-id: svn://localhost/ardour2/branches/3.0@12887 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoReplace use of pbd/filesystem.h with Glib equivalent in Mootcher class
Tim Mayberry [Sat, 23 Jun 2012 05:09:08 +0000 (05:09 +0000)]
Replace use of pbd/filesystem.h with Glib equivalent in Mootcher class

git-svn-id: svn://localhost/ardour2/branches/3.0@12886 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoReplace use of PBD::sys::exists with Glib::file_test
Tim Mayberry [Sat, 23 Jun 2012 05:09:06 +0000 (05:09 +0000)]
Replace use of PBD::sys::exists with Glib::file_test

git-svn-id: svn://localhost/ardour2/branches/3.0@12885 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused PBD::sys::exists function
Tim Mayberry [Sat, 23 Jun 2012 05:09:04 +0000 (05:09 +0000)]
Remove unused PBD::sys::exists function

git-svn-id: svn://localhost/ardour2/branches/3.0@12884 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse Glib::file_test instead of PBD::sys::exists
Tim Mayberry [Sat, 23 Jun 2012 05:09:02 +0000 (05:09 +0000)]
Use Glib::file_test instead of PBD::sys::exists

git-svn-id: svn://localhost/ardour2/branches/3.0@12883 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoReplace use of PBD::sys::exists with Glib equivalent
Tim Mayberry [Sat, 23 Jun 2012 05:09:00 +0000 (05:09 +0000)]
Replace use of PBD::sys::exists with Glib equivalent

git-svn-id: svn://localhost/ardour2/branches/3.0@12882 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse Glib::file_test instead of sys::exists
Tim Mayberry [Sat, 23 Jun 2012 05:08:57 +0000 (05:08 +0000)]
Use Glib::file_test instead of sys::exists

git-svn-id: svn://localhost/ardour2/branches/3.0@12881 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused method PBD::sys::path::leaf
Tim Mayberry [Sat, 23 Jun 2012 05:08:55 +0000 (05:08 +0000)]
Remove unused method PBD::sys::path::leaf

git-svn-id: svn://localhost/ardour2/branches/3.0@12880 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove use of PBD::sys::path from ExportFileNotebook, use Glib equivalent
Tim Mayberry [Sat, 23 Jun 2012 05:08:53 +0000 (05:08 +0000)]
Remove use of PBD::sys::path from ExportFileNotebook, use Glib equivalent

git-svn-id: svn://localhost/ardour2/branches/3.0@12879 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove use of pbd/filesystem.h in SessionDirectory, use Glib equivalents
Tim Mayberry [Sat, 23 Jun 2012 05:08:51 +0000 (05:08 +0000)]
Remove use of pbd/filesystem.h in SessionDirectory, use Glib equivalents

git-svn-id: svn://localhost/ardour2/branches/3.0@12878 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused method PBD::sys::path::branch_path
Tim Mayberry [Sat, 23 Jun 2012 05:08:49 +0000 (05:08 +0000)]
Remove unused method PBD::sys::path::branch_path

git-svn-id: svn://localhost/ardour2/branches/3.0@12877 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused function PBD::sys::rename
Tim Mayberry [Sat, 23 Jun 2012 05:08:46 +0000 (05:08 +0000)]
Remove unused function PBD::sys::rename

git-svn-id: svn://localhost/ardour2/branches/3.0@12876 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse g_rename instead of PBD::sys::rename in Session::save_history
Tim Mayberry [Sat, 23 Jun 2012 05:08:44 +0000 (05:08 +0000)]
Use g_rename instead of PBD::sys::rename in Session::save_history

git-svn-id: svn://localhost/ardour2/branches/3.0@12875 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse g_rename instead of PBD::sys::rename in Session::rename_state
Tim Mayberry [Sat, 23 Jun 2012 05:08:40 +0000 (05:08 +0000)]
Use g_rename instead of PBD::sys::rename in Session::rename_state

git-svn-id: svn://localhost/ardour2/branches/3.0@12874 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused function PBD::sys::remove
Tim Mayberry [Sat, 23 Jun 2012 05:08:38 +0000 (05:08 +0000)]
Remove unused function PBD::sys::remove

git-svn-id: svn://localhost/ardour2/branches/3.0@12873 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse g_remove instead of PBD::sys::remove in Session::save_state
Tim Mayberry [Sat, 23 Jun 2012 05:08:35 +0000 (05:08 +0000)]
Use g_remove instead of PBD::sys::remove in Session::save_state

git-svn-id: svn://localhost/ardour2/branches/3.0@12872 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse g_remove instead of sys::remove in Session::save_state
Tim Mayberry [Sat, 23 Jun 2012 05:08:33 +0000 (05:08 +0000)]
Use g_remove instead of sys::remove in Session::save_state

git-svn-id: svn://localhost/ardour2/branches/3.0@12871 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse g_remove instead of sys::remove in Session::remove_state
Tim Mayberry [Sat, 23 Jun 2012 05:08:31 +0000 (05:08 +0000)]
Use g_remove instead of sys::remove in Session::remove_state

git-svn-id: svn://localhost/ardour2/branches/3.0@12870 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoDon't try to remove pending state file if the file doesn't exist
Tim Mayberry [Sat, 23 Jun 2012 05:08:29 +0000 (05:08 +0000)]
Don't try to remove pending state file if the file doesn't exist

git-svn-id: svn://localhost/ardour2/branches/3.0@12869 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse Glib file utility functions in Session::remove_pending_capture_state
Tim Mayberry [Sat, 23 Jun 2012 05:08:26 +0000 (05:08 +0000)]
Use Glib file utility functions in Session::remove_pending_capture_state

git-svn-id: svn://localhost/ardour2/branches/3.0@12868 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused function PBD::sys::basename
Tim Mayberry [Sat, 23 Jun 2012 05:08:24 +0000 (05:08 +0000)]
Remove unused function PBD::sys::basename

git-svn-id: svn://localhost/ardour2/branches/3.0@12867 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unused function PBD::sys::extension
Tim Mayberry [Sat, 23 Jun 2012 05:08:22 +0000 (05:08 +0000)]
Remove unused function PBD::sys::extension

git-svn-id: svn://localhost/ardour2/branches/3.0@12866 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoMove file utility function into pbd/file_utils.h and into PBD namespace
Tim Mayberry [Sat, 23 Jun 2012 05:08:19 +0000 (05:08 +0000)]
Move file utility function into pbd/file_utils.h and into PBD namespace

git-svn-id: svn://localhost/ardour2/branches/3.0@12865 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoMake PBD::sys::exists_and_writable take a string instead of sys::path
Tim Mayberry [Sat, 23 Jun 2012 05:08:17 +0000 (05:08 +0000)]
Make PBD::sys::exists_and_writable take a string instead of sys::path

git-svn-id: svn://localhost/ardour2/branches/3.0@12864 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoMove three file utility functions from pbd/filesystem.h to pbd/file_utils.h
Tim Mayberry [Sat, 23 Jun 2012 05:08:14 +0000 (05:08 +0000)]
Move three file utility functions from pbd/filesystem.h to pbd/file_utils.h

git-svn-id: svn://localhost/ardour2/branches/3.0@12863 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoChange PBD::sys::get_absolute_path to take and return a std::string
Tim Mayberry [Sat, 23 Jun 2012 05:08:11 +0000 (05:08 +0000)]
Change PBD::sys::get_absolute_path to take and return a std::string

git-svn-id: svn://localhost/ardour2/branches/3.0@12862 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoMove docs for PBD::sys::get_absolute_path into header
Tim Mayberry [Sat, 23 Jun 2012 05:08:09 +0000 (05:08 +0000)]
Move docs for PBD::sys::get_absolute_path into header

git-svn-id: svn://localhost/ardour2/branches/3.0@12861 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoMove doc for PBD::sys::path_is_within to header
Tim Mayberry [Sat, 23 Jun 2012 05:08:06 +0000 (05:08 +0000)]
Move doc for PBD::sys::path_is_within to header

git-svn-id: svn://localhost/ardour2/branches/3.0@12860 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoChange PBD::sys::path_is_within to take string params and use Glib
Tim Mayberry [Sat, 23 Jun 2012 05:08:04 +0000 (05:08 +0000)]
Change PBD::sys::path_is_within to take string params and use Glib

git-svn-id: svn://localhost/ardour2/branches/3.0@12859 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoAdd docs for PBD::sys::equivalent_paths
Tim Mayberry [Sat, 23 Jun 2012 05:08:01 +0000 (05:08 +0000)]
Add docs for PBD::sys::equivalent_paths

git-svn-id: svn://localhost/ardour2/branches/3.0@12858 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRename PBD::sys::inodes_same to equivalent_paths
Tim Mayberry [Sat, 23 Jun 2012 05:07:59 +0000 (05:07 +0000)]
Rename PBD::sys::inodes_same to equivalent_paths

This better reflects its function and more closely matches boost
naming(which is usually a good sign)

git-svn-id: svn://localhost/ardour2/branches/3.0@12857 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoFix PBD::sys::inodes_same to check that paths are on same device
Tim Mayberry [Sat, 23 Jun 2012 05:07:56 +0000 (05:07 +0000)]
Fix PBD::sys::inodes_same to check that paths are on same device

two paths can have the same inode and be on different devices and hence
would not be equivalent

git-svn-id: svn://localhost/ardour2/branches/3.0@12856 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse g_stat in PBD::sys::inodes_same for portability
Tim Mayberry [Sat, 23 Jun 2012 05:07:54 +0000 (05:07 +0000)]
Use g_stat in PBD::sys::inodes_same for portability

git-svn-id: svn://localhost/ardour2/branches/3.0@12855 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoOverwrite target file in PBD::copy_file
Tim Mayberry [Sat, 23 Jun 2012 05:07:52 +0000 (05:07 +0000)]
Overwrite target file in PBD::copy_file

git-svn-id: svn://localhost/ardour2/branches/3.0@12854 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoMove PBD::sys::copy_file/s into pbd/file_utils.h and PBD:: namespace
Tim Mayberry [Sat, 23 Jun 2012 05:07:49 +0000 (05:07 +0000)]
Move PBD::sys::copy_file/s into pbd/file_utils.h and PBD:: namespace

Copy files no longer depends on PBD::sys::path so move it

git-svn-id: svn://localhost/ardour2/branches/3.0@12853 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse Glib::build_filename in PBD::sys::copy_files
Tim Mayberry [Sat, 23 Jun 2012 05:07:47 +0000 (05:07 +0000)]
Use Glib::build_filename in PBD::sys::copy_files

git-svn-id: svn://localhost/ardour2/branches/3.0@12852 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse PBD::sys::copy_file in ARDOUR::create_backup_file
Tim Mayberry [Sat, 23 Jun 2012 05:07:45 +0000 (05:07 +0000)]
Use PBD::sys::copy_file in ARDOUR::create_backup_file

git-svn-id: svn://localhost/ardour2/branches/3.0@12851 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse giomm in PBD::sys::copy_file and change function signature
Tim Mayberry [Sat, 23 Jun 2012 05:07:42 +0000 (05:07 +0000)]
Use giomm in PBD::sys::copy_file and change function signature

now returns bool to indicate successful copy rather than throw and
takes strings as args

git-svn-id: svn://localhost/ardour2/branches/3.0@12850 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove unnecessary header include
Tim Mayberry [Sat, 23 Jun 2012 05:07:40 +0000 (05:07 +0000)]
Remove unnecessary header include

git-svn-id: svn://localhost/ardour2/branches/3.0@12849 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoReplace use of pbd/filesystem.h with glib/mm equivalents
Tim Mayberry [Sat, 23 Jun 2012 05:07:37 +0000 (05:07 +0000)]
Replace use of pbd/filesystem.h with glib/mm equivalents

git-svn-id: svn://localhost/ardour2/branches/3.0@12848 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse PBD::basename_nosuffix instead of sys::basename
Tim Mayberry [Sat, 23 Jun 2012 05:07:35 +0000 (05:07 +0000)]
Use PBD::basename_nosuffix instead of sys::basename

git-svn-id: svn://localhost/ardour2/branches/3.0@12847 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoUse giomm in ARDOUR::create_backup_file to copy file for portablity
Tim Mayberry [Sat, 23 Jun 2012 05:07:33 +0000 (05:07 +0000)]
Use giomm in ARDOUR::create_backup_file to copy file for portablity

git-svn-id: svn://localhost/ardour2/branches/3.0@12846 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoReplace use of PBD::sys::path with Glib equivalent
Tim Mayberry [Sat, 23 Jun 2012 05:07:31 +0000 (05:07 +0000)]
Replace use of PBD::sys::path with Glib equivalent

git-svn-id: svn://localhost/ardour2/branches/3.0@12845 d708f5d6-7413-0410-9779-e7cbd77b26cf

11 years agoRemove now unnecessary header include
Tim Mayberry [Sat, 23 Jun 2012 05:07:29 +0000 (05:07 +0000)]
Remove now unnecessary header include

git-svn-id: svn://localhost/ardour2/branches/3.0@12844 d708f5d6-7413-0410-9779-e7cbd77b26cf