From: Vadim Zeitlin Date: Mon, 5 Oct 2009 22:57:20 +0000 (+0000) Subject: Use wxART_BUTTON instead of wxART_MENU for info bar icons. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5c67a53d87824299c35fe1690030428e1610230d?hp=bccb042c2a810144de90ffee88380ddd67edb762 Use wxART_BUTTON instead of wxART_MENU for info bar icons. wxART_BUTTON seems to be more appropriate, although in practice this doesn't make any difference. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/infobar.cpp b/src/generic/infobar.cpp index dcaac0c878..f0af9c9b8b 100644 --- a/src/generic/infobar.cpp +++ b/src/generic/infobar.cpp @@ -111,10 +111,10 @@ bool wxInfoBarGeneric::Create(wxWindow *parent, wxWindowID winid) m_text = new wxStaticText(this, wxID_ANY, ""); #ifdef wxHAS_DRAW_TITLE_BAR_BITMAP - const wxSize sizeBmp = wxArtProvider::GetSizeHint(wxART_FRAME_ICON); + const wxSize sizeBmp = wxArtProvider::GetSizeHint(wxART_BUTTON); wxBitmap bmp = GetCloseButtonBitmap(this, sizeBmp, colBg); #else // !wxHAS_DRAW_TITLE_BAR_BITMAP - wxBitmap bmp = wxArtProvider::GetBitmap(wxART_CLOSE, wxART_MENU); + wxBitmap bmp = wxArtProvider::GetBitmap(wxART_CLOSE, wxART_BUTTON); #endif // wxHAS_DRAW_TITLE_BAR_BITMAP m_button = new wxBitmapButton ( @@ -264,7 +264,7 @@ void wxInfoBarGeneric::ShowMessage(const wxString& msg, int flags) { m_icon->SetBitmap(wxArtProvider::GetBitmap( wxArtProvider::GetMessageBoxIconId(flags), - wxART_MENU)); + wxART_BUTTON)); m_icon->Show(); }