mirror of
https://github.com/alexkay/spek.git
synced 2025-04-15 08:10:33 +03:00
Use stock GTK+ buttons in the toolbar
This commit is contained in:
parent
73d77e5e92
commit
ead812e6da
@ -36,6 +36,21 @@ wxBitmap SpekArtProvider::CreateBitmap(
|
||||
if (id == ART_SPEK) {
|
||||
#ifdef OS_UNIX
|
||||
return wxArtProvider::GetBitmap(wxT("spek"), client, size);
|
||||
#endif
|
||||
}
|
||||
if (id == ART_OPEN) {
|
||||
#ifdef OS_UNIX
|
||||
return wxArtProvider::GetBitmap(wxT("gtk-open"), client, size);
|
||||
#endif
|
||||
}
|
||||
if (id == ART_SAVE) {
|
||||
#ifdef OS_UNIX
|
||||
return wxArtProvider::GetBitmap(wxT("gtk-save"), client, size);
|
||||
#endif
|
||||
}
|
||||
if (id == ART_ABOUT) {
|
||||
#ifdef OS_UNIX
|
||||
return wxArtProvider::GetBitmap(wxT("gtk-about"), client, size);
|
||||
#endif
|
||||
}
|
||||
return wxNullBitmap;
|
||||
|
@ -111,13 +111,13 @@ SpekWindow::SpekWindow(const wxString& path) :
|
||||
toolbar->AddTool(
|
||||
wxID_OPEN,
|
||||
wxEmptyString,
|
||||
wxArtProvider::GetBitmap(wxART_FILE_OPEN, wxART_TOOLBAR),
|
||||
wxArtProvider::GetBitmap(ART_OPEN, wxART_TOOLBAR),
|
||||
menu_file_open->GetItemLabelText()
|
||||
);
|
||||
toolbar->AddTool(
|
||||
wxID_SAVE,
|
||||
wxEmptyString,
|
||||
wxArtProvider::GetBitmap(wxART_FILE_SAVE, wxART_TOOLBAR),
|
||||
wxArtProvider::GetBitmap(ART_SAVE, wxART_TOOLBAR),
|
||||
menu_file_save->GetItemLabelText()
|
||||
);
|
||||
#if wxCHECK_VERSION(2, 9, 1)
|
||||
@ -125,7 +125,7 @@ SpekWindow::SpekWindow(const wxString& path) :
|
||||
toolbar->AddTool(
|
||||
wxID_ABOUT,
|
||||
wxEmptyString,
|
||||
wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR),
|
||||
wxArtProvider::GetBitmap(ART_ABOUT, wxART_TOOLBAR),
|
||||
menu_help_about->GetItemLabelText()
|
||||
);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user