Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv25282

Modified Files:
        Menus.cpp Project.cpp 
Log Message:
Fix toolbars to update tooltips when the language changes.


Index: Project.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v
retrieving revision 1.422
retrieving revision 1.423
diff -u -d -r1.422 -r1.423
--- Project.cpp 26 May 2009 00:03:44 -0000      1.422
+++ Project.cpp 29 May 2009 17:07:39 -0000      1.423
@@ -924,6 +924,8 @@
    gPrefs->Read(wxT("/AudioFiles/ShowId3Dialog"), &mShowId3Dialog, true);
    gPrefs->Read(wxT("/AudioFiles/NormalizeOnLoad"),&mNormalizeOnLoad, false);
 
+   gPrefs->Read(wxT("/SamplingRate/DefaultProjectSampleRate"), &mRate, 
AudioIO::GetOptimalSupportedSampleRate());
+   mDefaultFormat = (sampleFormat) 
gPrefs->Read(wxT("/SamplingRate/DefaultProjectSampleFormat"), floatSample);
 }
 
 void AudacityProject::UpdatePrefs()
@@ -935,36 +937,10 @@
    if (mTrackPanel)
       mTrackPanel->UpdatePrefs();
 
-   mRate = (double) 
gPrefs->Read(wxT("/SamplingRate/DefaultProjectSampleRate"), 
AudioIO::GetOptimalSupportedSampleRate());
-   mDefaultFormat = (sampleFormat) gPrefs->
-           Read(wxT("/SamplingRate/DefaultProjectSampleFormat"), floatSample);
-
    SetSnapTo(gPrefs->Read(wxT("/SnapTo"), 0L)!=0);
 
-// mToolManager->LayoutToolBars(); // Just to add/remove the CleanSpeech 
button.
-
-   if (GetSelectionBar()) {
-      GetSelectionBar()->UpdateRates();
-      GetSelectionBar()->SetRate(mRate);
-   }
-
-   if (GetDeviceToolBar())
-      GetDeviceToolBar()->UpdatePrefs();
-
-   if (GetMixerToolBar())
-      GetMixerToolBar()->UpdatePrefs();
-
-   if( GetControlToolBar() )
-      GetControlToolBar()->UpdatePrefs();
-
-   if( GetMeterToolBar() )
-   {
-      Meter *playMeter, *recordMeter;
-      GetMeterToolBar()->GetMeters(&playMeter, &recordMeter);
-      playMeter->UpdatePrefs();
-      playMeter->HandleLayout();
-      recordMeter->UpdatePrefs();
-      recordMeter->HandleLayout();
+   if (mToolManager) {
+      mToolManager->UpdatePrefs();
    }
 }
 

Index: Menus.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Menus.cpp,v
retrieving revision 1.480
retrieving revision 1.481
diff -u -d -r1.480 -r1.481
--- Menus.cpp   28 May 2009 07:09:40 -0000      1.480
+++ Menus.cpp   29 May 2009 17:07:39 -0000      1.481
@@ -2757,7 +2757,6 @@
 
       p->RebuildMenuBar();
       p->RebuildOtherMenus();
-      p->GetSelectionBar()->UpdateDisplay();
    }
 }
 


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to