diff options
author | Alexander Kojevnikov <alexander@kojevnikov.com> | 2012-09-04 10:27:47 -0700 |
---|---|---|
committer | Alexander Kojevnikov <alexander@kojevnikov.com> | 2012-09-04 10:27:47 -0700 |
commit | 73d77e5e922e3b2e01d4492faca75a484deffbfa (patch) | |
tree | a706de279cdb0b95fe483c887e54a5fc6ffcc69f /src | |
parent | 08e3d81f0b36c9b11f817b7a89f45d89d01b3c4d (diff) | |
download | spek-73d77e5e922e3b2e01d4492faca75a484deffbfa.zip spek-73d77e5e922e3b2e01d4492faca75a484deffbfa.tar.gz spek-73d77e5e922e3b2e01d4492faca75a484deffbfa.tar.bz2 |
Show the About button in the toolbar
Diffstat (limited to 'src')
-rw-r--r-- | src/spek-window.cc | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/spek-window.cc b/src/spek-window.cc index 1d69ec3..3c81484 100644 --- a/src/spek-window.cc +++ b/src/spek-window.cc @@ -77,9 +77,9 @@ SpekWindow::SpekWindow(const wxString& path) : SetTitle(this->description); #if ART_HAS_ICON_BUNDLES - SetIcons(wxArtProvider::GetIconBundle(ART_SPEK)); + SetIcons(wxArtProvider::GetIconBundle(ART_SPEK, wxART_FRAME_ICON)); #else - SetIcon(wxArtProvider::GetIcon(ART_SPEK, wxART_OTHER, wxSize(48, 48))); + SetIcon(wxArtProvider::GetIcon(ART_SPEK, wxART_FRAME_ICON, wxSize(48, 48))); #endif wxMenuBar *menu = new wxMenuBar(); @@ -111,15 +111,24 @@ SpekWindow::SpekWindow(const wxString& path) : toolbar->AddTool( wxID_OPEN, wxEmptyString, - wxArtProvider::GetBitmap(wxART_FILE_OPEN), + wxArtProvider::GetBitmap(wxART_FILE_OPEN, wxART_TOOLBAR), menu_file_open->GetItemLabelText() ); toolbar->AddTool( wxID_SAVE, wxEmptyString, - wxArtProvider::GetBitmap(wxART_FILE_SAVE), + wxArtProvider::GetBitmap(wxART_FILE_SAVE, wxART_TOOLBAR), menu_file_save->GetItemLabelText() ); +#if wxCHECK_VERSION(2, 9, 1) + toolbar->AddStretchableSpace(); + toolbar->AddTool( + wxID_ABOUT, + wxEmptyString, + wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR), + menu_help_about->GetItemLabelText() + ); +#endif toolbar->Realize(); wxSizer *sizer = new wxBoxSizer(wxVERTICAL); |