|
From: Alessandro V. <a.v...@st...> - 2011-11-03 11:24:31
|
According to #wxwidgets it is safe to remove the parameter as it wasn't used anyway. > [12:05:56] <DavidGH> Spockz: The 'cursorHotspot' parameter isn't used so, Yes, it's safe for wxHaskell to drop it So I did this and I stumble on the following: > src/cpp/eljcombobox.cpp:171:0: > error: request for member ‘SetClientData’ is ambiguous > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/ctrlsub.h:296:0: > error: candidates are: void wxItemContainer::SetClientData(unsigned int, void*) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/event.h:3233:0: > error: void wxEvtHandler::SetClientData(void*) > src/cpp/eljcombobox.cpp: In function ‘void* wxComboBox_GetClientData(wxComboBox*, int)’: > > src/cpp/eljcombobox.cpp:176:0: > error: request for member ‘GetClientData’ is ambiguous > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/ctrlsub.h:297:0: > error: candidates are: void* wxItemContainer::GetClientData(unsigned int) const > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/event.h:3234:0: > error: void* wxEvtHandler::GetClientData() const I'm not that familiar with wxHaskell to know what to pick here. Also how should I create a new patch of my changes? I've included the whole source file for now. - Alessandro On 3 nov. 2011, at 11:56, Eric Kow wrote: > On 3 Nov 2011, at 06:53, Alessandro Vermeulen wrote: > >> I've applied your patches, and I though it build… however, it get's stuck further on, is there where you are stuck too? > > Yup. If I understand correctly, we're trying to use a constructor for wxDragImage that has been deprecated for a *long* time (was marked deprecated even in wxWidgets 2.4.x). I guess they finally removed it in 2.9. Now the question is if we can ditch the wxPoint argument, ignore it, find a use for it, and if we should change the Haskell API to go with this > >>> src/cpp/dragimage.cpp:11:0: >>> error: no matching function for call to ‘wxGenericDragImage::wxGenericDragImage(wxBitmap&, wxCursor&, wxPoint)’ >>> >>> /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:268:0: >>> note: candidates are: wxGenericDragImage::wxGenericDragImage(const wxGenericDragImage&) > > ... > > -- > Eric Kow <http://erickow.com> > |