lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] micro patch for wxGTK 2.9.0


From: Vadim Zeitlin
Subject: [lmi] micro patch for wxGTK 2.9.0
Date: Wed, 11 Mar 2009 16:28:07 +0100

 Hello,

 As wxArtProvider::Insert() is deprecated in wx svn trunk, building
currently fails because LMI uses -Werror and a warning is generated because
of the use of a deprecated function. The following trivial patch fixes it
(PushBack() is/will also be available in 2.8.10):

--- main_wx.cpp 2009-01-17 21:45:12 +0000
+++ main_wx.cpp 2009-03-11 15:23:34 +0000
@@ -596,9 +596,9 @@
         // For GTK+, native theme takes precedence over local icons.
         // For other platforms, local icons take precedence.
 #if defined __WXGTK__
-        wxArtProvider::Insert(new(wx) icon_monger);
+        wxArtProvider::PushBack(new(wx) icon_monger);
 #else  // !defined __WXGTK__
-        wxArtProvider::Push  (new(wx) icon_monger);
+        wxArtProvider::Push    (new(wx) icon_monger);
 #endif // !defined __WXGTK__

         wxXmlResource& xml_resources = *wxXmlResource::Get();


 Thanks,
VZ

reply via email to

[Prev in Thread] Current Thread [Next in Thread]