Changeset 0edddb4 in git


Ignore:
Timestamp:
05/03/15 04:31:58 (5 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
793b6a3
Parents:
4a66219
Message:

src/aboutdlg.cc,src/aboutdlg.h: Make the button to dismiss the
"About" dialog "OK" rather than "Close", which seems more logical,
and also allows the dialog to be closed by pressing "Escape".

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r4a66219 r0edddb4  
     1Thu Mar 05 04:30:56 GMT 2015  Olly Betts <olly@survex.com>
     2
     3        * src/aboutdlg.cc,src/aboutdlg.h: Make the button to dismiss the
     4          "About" dialog "OK" rather than "Close", which seems more logical,
     5          and also allows the dialog to be closed by pressing "Escape".
     6
    17Thu Mar 05 03:21:45 GMT 2015  Olly Betts <olly@survex.com>
    28
  • src/aboutdlg.cc

    r4a66219 r0edddb4  
    3838    EVT_TIMER(about_TIMER, AboutDlg::OnTimer)
    3939    EVT_BUTTON(wxID_COPY, AboutDlg::OnCopy)
    40     EVT_BUTTON(wxID_CLOSE, AboutDlg::OnClose)
    4140END_EVENT_TABLE()
    4241
     
    5857        (void)wxTheClipboard->Flush();
    5958    }
    60 }
    61 
    62 void
    63 AboutDlg::OnClose(wxCommandEvent &)
    64 {
    65     Close();
    6659}
    6760
     
    203196    bottom->Add(5, 5, 1);
    204197    bottom->Add(new wxButton(this, wxID_COPY), 0, wxRIGHT | wxBOTTOM, 6);
    205     wxButton* close = new wxButton(this, wxID_CLOSE);
     198    wxButton* close = new wxButton(this, wxID_OK);
    206199    bottom->Add(close, 0, wxRIGHT | wxBOTTOM, 15);
    207200    vert->Add(bottom, 0, wxEXPAND | wxLEFT | wxRIGHT, 0);
  • src/aboutdlg.h

    r4a66219 r0edddb4  
    3636    void OnTimer(wxTimerEvent &e);
    3737    void OnCopy(wxCommandEvent &e);
    38     void OnClose(wxCommandEvent &e);
    3938
    4039private:
Note: See TracChangeset for help on using the changeset viewer.