summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_timefx.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2005-10-06 04:59:20 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2005-10-06 04:59:20 +0000
commita0663fbd278f4514ba26c4a4c0e2aa5ec2964dd9 (patch)
tree0505a7b5fc3c21111cf09279b16bd615e2c5df4b /gtk2_ardour/editor_timefx.cc
parent60f817b0d2411947c257ecbf0b0376589ea77acd (diff)
a few more header files fixes, plus cleanup from nick_m, and the start of Action/UIManager adoption
git-svn-id: svn://localhost/trunk/ardour2@48 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_timefx.cc')
-rw-r--r--gtk2_ardour/editor_timefx.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_timefx.cc b/gtk2_ardour/editor_timefx.cc
index ffdf85c699..2d3e84c767 100644
--- a/gtk2_ardour/editor_timefx.cc
+++ b/gtk2_ardour/editor_timefx.cc
@@ -91,7 +91,7 @@ Editor::TimeStretchDialog::TimeStretchDialog (Editor& e)
gint
Editor::TimeStretchDialog::update_progress ()
{
- progress_bar.set_percentage (request.progress);
+ progress_bar.set_fraction (request.progress/100);
return request.running;
}
@@ -119,7 +119,7 @@ Editor::run_timestretch (AudioRegionSelection& regions, float fraction)
current_timestretch = new TimeStretchDialog (*this);
}
- current_timestretch->progress_bar.set_percentage (0.0f);
+ current_timestretch->progress_bar.set_fraction (0.0f);
current_timestretch->first_cancel = current_timestretch->cancel_button.signal_clicked().connect (bind (mem_fun (*current_timestretch, &ArdourDialog::stop), -1));
current_timestretch->first_delete = current_timestretch->signal_delete_event().connect (mem_fun (*current_timestretch, &ArdourDialog::wm_close_event));
@@ -154,7 +154,7 @@ Editor::run_timestretch (AudioRegionSelection& regions, float fraction)
pthread_detach (thread);
- sigc::connection c = Main::timeout.connect (mem_fun (current_timestretch, &TimeStretchDialog::update_progress), 100);
+ sigc::connection c = Glib::signal_timeout().connect (mem_fun (current_timestretch, &TimeStretchDialog::update_progress), 100);
while (current_timestretch->request.running) {
gtk_main_iteration ();