create new MIDI regions on streamitem click in "note draw" mode as well as object...
[ardour.git] / gtk2_ardour / time_fx_dialog.cc
index a7c7d6ee6030c69d205f896656cfc2e2f97cb682..d1650430b24b6a7dd39071601e44e23c070098f7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2000-2009 Paul Davis 
+    Copyright (C) 2000-2009 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -29,7 +29,6 @@
 #include "pbd/pthread_utils.h"
 #include "pbd/memento_command.h"
 
-#include <gtkmm2ext/window_title.h>
 #include <gtkmm2ext/utils.h>
 
 #include "editor.h"
@@ -42,7 +41,6 @@
 #include "ardour/audioplaylist.h"
 #include "ardour/audio_track.h"
 #include "ardour/audioregion.h"
-#include "ardour/audio_diskstream.h"
 #include "ardour/stretch.h"
 #include "ardour/midi_stretch.h"
 #include "ardour/pitch.h"
@@ -57,7 +55,6 @@ using namespace RubberBand;
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 
@@ -83,13 +80,11 @@ TimeFXDialog::TimeFXDialog (Editor& e, bool pitch)
        set_position (Gtk::WIN_POS_MOUSE);
        set_name (N_("TimeFXDialog"));
 
-       WindowTitle title(Glib::get_application_name());
        if (pitching) {
-               title += _("Pitch Shift");
+               set_title (_("Pitch Shift"));
        } else {
-               title += _("Time Stretch");
+               set_title (_("Time Stretch"));
        }
-       set_title(title.get_string());
 
        cancel_button = add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
 
@@ -162,7 +157,7 @@ TimeFXDialog::TimeFXDialog (Editor& e, bool pitch)
                antialias_button.set_name (N_("TimeFXButton"));
                table->attach (antialias_button, 1, 3, 1, 2, Gtk::FILL, Gtk::EXPAND, 0, 0);
 
-#endif 
+#endif
 
                add_button (_("Stretch/Shrink"), Gtk::RESPONSE_ACCEPT);
 
@@ -176,7 +171,7 @@ TimeFXDialog::TimeFXDialog (Editor& e, bool pitch)
        l->set_use_markup ();
 
        progress_bar.set_name (N_("TimeFXProgress"));
-       
+
        progress_box->pack_start (*l, false, false);
        progress_box->pack_start (progress_bar, false, true);
 
@@ -186,7 +181,7 @@ TimeFXDialog::TimeFXDialog (Editor& e, bool pitch)
 
        get_vbox()->pack_start (*vbox, false, false);
 
-       
+
        show_all_children ();
 }
 
@@ -206,7 +201,7 @@ TimeFXDialog::cancel_in_progress ()
 }
 
 gint
-TimeFXDialog::delete_in_progress (GdkEventAny* ev)
+TimeFXDialog::delete_in_progress (GdkEventAny*)
 {
        status = -2;
        request.cancel = true;