Bug#750737: Please update to use wxwidgets3.0

Olly Betts olly at survex.com
Tue Jun 10 12:05:21 UTC 2014


On Tue, Jun 10, 2014 at 01:13:55PM +0200, Jaromír Mikeš wrote:
> I am just updating sooperlooper to 1.7.2 but it still not build against
> libwxgtk3.0-dev.
> 
> main_panel.cpp: In member function 'void
> SooperLooperGui::MainPanel::init_loopers(int)':
> main_panel.cpp:451:33: error: invalid conversion from
> 'SooperLooperGui::LooperPanel*' to 'int' [-fpermissive]
>     _main_sizer->Remove(looperpan);
>                                  ^

Change Remove to Detach here (it got renamed to make it clear the
window object isn't destroyed).

> main_panel.cpp:463:57: warning: 'virtual void
> wxWindowBase::SetVirtualSizeHints(int, int, int, int)' is deprecated
> (declared at /usr/include/wx-3.0/wx/window.h:452)
> [-Wdeprecated-declarations]
>     _scroller->SetVirtualSizeHints (bestsz.GetWidth(), -1);
>                                                          ^

Well, it's a warning, so you should be OK.  I don't know off-hand what
the replacement for this is.

> main_panel.cpp: In member function 'void
> SooperLooperGui::MainPanel::misc_action(bool, wxString)':
> main_panel.cpp:1280:132: error: 'wxSAVE' was not declared in this scope
>    wxString filename = do_file_selector (wxT("Choose file to save loop"),
> wxT("wav"), wxT("WAVE files (*.wav)|*.wav;*.WAV;*.Wav"),
> wxSAVE|wxCHANGE_DIR|wxOVERWRITE_PROMPT);

All the wxFileDialog constants now start wxFD_, so wxFD_SAVE instead of
wxSAVE, etc.  Both forms work in wx2.8.

Cheers,
    Olly



More information about the pkg-multimedia-maintainers mailing list