Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv18331
Modified Files:
Project.cpp
Log Message:
Fix toolbar dragging under GTK...actually makes it a little better across the
board. (Assuming it works for everyone. ;-))
Index: Project.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v
retrieving revision 1.284
retrieving revision 1.285
diff -u -d -r1.284 -r1.285
--- Project.cpp 3 Oct 2006 04:21:44 -0000 1.284
+++ Project.cpp 15 Oct 2006 03:47:15 -0000 1.285
@@ -1082,7 +1082,6 @@
SetSizeHints(250, (mainsz.y - sbpos.y) + tppos.y + 50, 20000, 20000);
}
-
void AudacityProject::HandleResize()
{
if (!mTrackPanel)
@@ -1093,7 +1092,6 @@
UpdateLayout();
}
-
void AudacityProject::OnIconize(wxIconizeEvent &event)
{
int VisibleProjectCount = 0;
@@ -1397,10 +1395,16 @@
// Destroy the TrackPanel early so it's not around once we start
// deleting things like tracks and such out from underneath it.
- // The DestroyChildren() takes care of this for us.
- DestroyChildren();
+ mTrackPanel->Destroy();
mTrackPanel = NULL; // Make sure this gets set...see
HandleResize()
+ // Delete the tool manager before the children since it needs
+ // to save the state of the toolbars.
+ delete mToolManager;
+ mToolManager = NULL;
+
+ DestroyChildren();
+
delete mImporter;
mImporter = NULL;
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs