First appearance of MIDI edit tool bar. Toggles when delete held, but otherwise...
[ardour.git] / gtk2_ardour / editor_timefx.cc
index 188960c9624fc8276d984693c6a1ddd01e5a0711..2efdc03f8fdca0c723997ea380732ed01ef2b7e8 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #include <cstdlib>
@@ -27,6 +26,8 @@
 #include <pbd/pthread_utils.h>
 #include <pbd/memento_command.h>
 
+#include <gtkmm2ext/window_title.h>
+
 #include "editor.h"
 #include "audio_time_axis.h"
 #include "audio_region_view.h"
@@ -45,6 +46,7 @@ using namespace ARDOUR;
 using namespace PBD;
 using namespace sigc;
 using namespace Gtk;
+using namespace Gtkmm2ext;
 
 Editor::TimeStretchDialog::TimeStretchDialog (Editor& e)
        : ArdourDialog ("time stretch dialog"),
@@ -54,9 +56,12 @@ Editor::TimeStretchDialog::TimeStretchDialog (Editor& e)
 {
        set_modal (true);
        set_position (Gtk::WIN_POS_MOUSE);
-       set_title (_("ardour: timestretch"));
        set_name (N_("TimeStretchDialog"));
 
+       WindowTitle title(Glib::get_application_name());
+       title += _("Timestretch");
+       set_title(title.get_string());
+
        get_vbox()->set_spacing (5);
        get_vbox()->set_border_width (5);
        get_vbox()->pack_start (upper_button_box);
@@ -159,7 +164,7 @@ void
 Editor::do_timestretch (TimeStretchDialog& dialog)
 {
        Track*    t;
-       Playlist* playlist;
+       boost::shared_ptr<Playlist> playlist;
        boost::shared_ptr<Region>   new_region;
 
        for (RegionSelection::iterator i = dialog.regions.begin(); i != dialog.regions.end(); ) {