Fix region/track naming on MIDI import (remove ugly/unnecessary %a %b etc suffix).
[ardour.git] / gtk2_ardour / audio_region_editor.cc
index b7106a079660ec16bd3eeafdd68a9b48317e2f7b..ff84a44488d1e1a11fae065e1c00968e30c6da1a 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 <pbd/memento_command.h>
@@ -25,6 +24,7 @@
 #include <ardour/utils.h>
 #include <gtkmm2ext/utils.h>
 #include <gtkmm2ext/stop_signal.h>
+#include <gtkmm2ext/window_title.h>
 #include <cmath>
 
 #include "audio_region_editor.h"
@@ -39,6 +39,7 @@ using namespace ARDOUR;
 using namespace PBD;
 using namespace sigc;
 using namespace std;
+using namespace Gtkmm2ext;
 
 AudioRegionEditor::AudioRegionEditor (Session& s, boost::shared_ptr<AudioRegion> r, AudioRegionView& rv)
        : RegionEditor (s),
@@ -119,9 +120,10 @@ AudioRegionEditor::AudioRegionEditor (Session& s, boost::shared_ptr<AudioRegion>
 
        signal_delete_event().connect (bind (sigc::ptr_fun (just_hide_it), static_cast<Window *> (this)));
 
-       string title = _("ardour: region ");
-       title += _region->name();
-       set_title (title);
+       WindowTitle title(string_compose (_("Region %1"), _region->name()));
+       title += Glib::get_application_name();
+
+       set_title (title.get_string());
 
        show_all();