]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxART_BUTTON instead of wxART_MENU for info bar icons.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Oct 2009 22:57:20 +0000 (22:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Oct 2009 22:57:20 +0000 (22:57 +0000)
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

src/generic/infobar.cpp

index dcaac0c878cfd16f8ec37c9140923ff530037b3e..f0af9c9b8b20d9cbd89e6c39b50f5d78a689ec3b 100644 (file)
@@ -111,10 +111,10 @@ bool wxInfoBarGeneric::Create(wxWindow *parent, wxWindowID winid)
     m_text = new wxStaticText(this, wxID_ANY, "");
 
 #ifdef wxHAS_DRAW_TITLE_BAR_BITMAP
     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 = 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
                    (
 #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),
     {
         m_icon->SetBitmap(wxArtProvider::GetBitmap(
                             wxArtProvider::GetMessageBoxIconId(flags),
-                          wxART_MENU));
+                          wxART_BUTTON));
         m_icon->Show();
     }
 
         m_icon->Show();
     }