projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix spacing around OK/Cancel in the KDM dialog.
[dcpomatic.git]
/
src
/
wx
/
dir_picker_ctrl.cc
diff --git
a/src/wx/dir_picker_ctrl.cc
b/src/wx/dir_picker_ctrl.cc
index 962dd50ece04b58c72df5d233ec08efdca90da95..fe4937edf5cc8002f24dfff543b188167723b516 100644
(file)
--- a/
src/wx/dir_picker_ctrl.cc
+++ b/
src/wx/dir_picker_ctrl.cc
@@
-29,7
+29,6
@@
using namespace boost;
DirPickerCtrl::DirPickerCtrl (wxWindow* parent)
: wxPanel (parent)
DirPickerCtrl::DirPickerCtrl (wxWindow* parent)
: wxPanel (parent)
- , _parent (parent)
{
_sizer = new wxBoxSizer (wxHORIZONTAL);
{
_sizer = new wxBoxSizer (wxHORIZONTAL);
@@
-40,14
+39,14
@@
DirPickerCtrl::DirPickerCtrl (wxWindow* parent)
SetSizerAndFit (_sizer);
SetSizerAndFit (_sizer);
- _browse->
Connect (wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler (DirPickerCtrl::browse_clicked), 0, this
);
+ _browse->
Bind (wxEVT_COMMAND_BUTTON_CLICKED, boost::bind (&DirPickerCtrl::browse_clicked, this)
);
}
void
DirPickerCtrl::SetPath (wxString p)
{
_path = p;
}
void
DirPickerCtrl::SetPath (wxString p)
{
_path = p;
-
+
if (_path == wxStandardPaths::Get().GetDocumentsDir()) {
_folder->SetLabel (_("My Documents"));
} else {
if (_path == wxStandardPaths::Get().GetDocumentsDir()) {
_folder->SetLabel (_("My Documents"));
} else {
@@
-65,7
+64,7
@@
DirPickerCtrl::GetPath () const
}
void
}
void
-DirPickerCtrl::browse_clicked (
wxCommandEvent &
)
+DirPickerCtrl::browse_clicked ()
{
wxDirDialog* d = new wxDirDialog (this);
if (d->ShowModal () == wxID_OK) {
{
wxDirDialog* d = new wxDirDialog (this);
if (d->ShowModal () == wxID_OK) {