]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/tipdlg.cpp
make more wxImage methods const
[wxWidgets.git] / src / generic / tipdlg.cpp
index 417a093903a51da7469742805b08cce7c2e08518..33a019fc1181eafca3a5229bb7054c9de028e0de 100644 (file)
@@ -181,7 +181,7 @@ wxTipDialog::wxTipDialog(wxWindow *parent,
     text->SetFont(wxFont(18, wxSWISS, wxNORMAL, wxBOLD));
 #endif
 //
-//    text->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_BTNFACE));
+//    text->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE));
 
     m_text = new wxTextCtrl(this, -1, wxT(""),
                             wxDefaultPosition, wxSize(200, 160),
@@ -198,7 +198,13 @@ wxTipDialog::wxTipDialog(wxWindow *parent,
 #if defined(__WXMSW__) || defined(__WXPM__)
     wxIcon icon("wxICON_TIP");
 #else
+    // XPM hack: make the arrays const
+    #define static static const
+
     #include "wx/generic/tip.xpm"
+
+    #undef static
+
     wxIcon icon(tipIcon);
 #endif
     wxStaticBitmap *bmp = new wxStaticBitmap(this, -1, icon);