Update of /cvsroot/audacity/audacity-src/src/prefs
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv3293/prefs
Modified Files:
PrefsDialog.cpp
Log Message:
Layout 'effects' OK/Cancel buttons consistently on all platforms.
Index: PrefsDialog.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/prefs/PrefsDialog.cpp,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- PrefsDialog.cpp 5 Jul 2007 21:35:55 -0000 1.48
+++ PrefsDialog.cpp 29 Jul 2007 19:52:09 -0000 1.49
@@ -175,24 +175,11 @@
#if defined(__WXGTK__)
mCategories->GetTreeCtrl()->EnsureVisible(mCategories->GetTreeCtrl()->GetRootItem());
#endif
-
- mOK = new wxButton(this,
- wxID_OK, _("&OK"));
- mOK->SetDefault();
-
- mCancel = new wxButton(this,
- wxID_CANCEL,
- _("&Cancel"));
-
- wxBoxSizer *buttonSizer = new wxBoxSizer(wxHORIZONTAL);
-
- buttonSizer->Add(mCancel, 0, wxALL, 7);
- buttonSizer->Add(mOK, 0, wxALL, 7);
- topSizer->Add(buttonSizer, 0, wxALIGN_RIGHT);
+ topSizer->Add(CreateStdButtonSizer(this, eCancelButton|eOkButton), 0,
wxEXPAND);
wxBoxSizer *outSizer = new wxBoxSizer( wxVERTICAL );
- outSizer->Add(topSizer, 1, wxGROW|wxALL, TOP_LEVEL_BORDER);
+ outSizer->Add(topSizer, 1, wxGROW|wxTOP, TOP_LEVEL_BORDER);
SetAutoLayout(true);
SetSizer(outSizer);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs