use running_from_source_tree()
[ardour.git] / gtk2_ardour / normalize_dialog.cc
index a12732e99a5f6ca05d85f0edfb5440fb53ddd972..308328538cac2cf18ed654efe4258109c0f47bf4 100644 (file)
@@ -35,7 +35,7 @@ NormalizeDialog::NormalizeDialog (bool more_than_one)
        , _normalize_individually (0)
 {
        get_vbox()->set_spacing (12);
-       
+
        HBox* hbox = manage (new HBox);
        hbox->set_spacing (6);
        hbox->set_border_width (6);
@@ -68,7 +68,7 @@ NormalizeDialog::NormalizeDialog (bool more_than_one)
        get_vbox()->pack_start (*_progress_bar);
 
        show_all ();
-       
+
        add_button (Stock::CANCEL, RESPONSE_CANCEL);
        add_button (_("Normalize"), RESPONSE_ACCEPT);
        set_default_response (RESPONSE_ACCEPT);
@@ -95,6 +95,10 @@ NormalizeDialog::target () const
 void
 NormalizeDialog::update_progress_gui (float p)
 {
+       /* Normalization is run inside the GUI thread, so we can directly
+        * update the progress bar when notified about progress.
+        */
+
        _progress_bar->set_fraction (p);
 }