Commit 640f75ed authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwidgets: wx backward compatibility fixes by Daniel Stranger...

* modules/gui/wxwidgets: wx backward compatibility fixes by Daniel Stranger (vlc at schmaller dot de).
parent b5d7eca1
...@@ -495,7 +495,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent, ...@@ -495,7 +495,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
/* Create notebook */ /* Create notebook */
notebook = new wxNotebook( panel, Notebook_Event ); notebook = new wxNotebook( panel, Notebook_Event );
#if (!wxCHECK_VERSION(2,5,0)) #if (!wxCHECK_VERSION(2,5,2))
wxNotebookSizer *notebook_sizer = new wxNotebookSizer( notebook ); wxNotebookSizer *notebook_sizer = new wxNotebookSizer( notebook );
#endif #endif
...@@ -571,7 +571,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent, ...@@ -571,7 +571,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
wxBoxSizer *panel_sizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer *panel_sizer = new wxBoxSizer( wxVERTICAL );
panel_sizer->Add( mrl_sizer_sizer, 0, wxEXPAND, 5 ); panel_sizer->Add( mrl_sizer_sizer, 0, wxEXPAND, 5 );
panel_sizer->Add( label, 0, wxEXPAND | wxALL, 5 ); panel_sizer->Add( label, 0, wxEXPAND | wxALL, 5 );
#if (!wxCHECK_VERSION(2,5,0)) #if (!wxCHECK_VERSION(2,5,2))
panel_sizer->Add( notebook_sizer, 1, wxEXPAND | wxALL, 5 ); panel_sizer->Add( notebook_sizer, 1, wxEXPAND | wxALL, 5 );
#else #else
panel_sizer->Add( notebook, 1, wxEXPAND | wxALL, 5 ); panel_sizer->Add( notebook, 1, wxEXPAND | wxALL, 5 );
......
...@@ -171,7 +171,7 @@ ExtraPanel::ExtraPanel( intf_thread_t *_p_intf, wxWindow *_p_parent ): ...@@ -171,7 +171,7 @@ ExtraPanel::ExtraPanel( intf_thread_t *_p_intf, wxWindow *_p_parent ):
notebook = new wxNotebook( this, Notebook_Event ); notebook = new wxNotebook( this, Notebook_Event );
#if (!wxCHECK_VERSION(2,5,0)) #if (!wxCHECK_VERSION(2,5,2))
wxNotebookSizer *notebook_sizer = new wxNotebookSizer( notebook ); wxNotebookSizer *notebook_sizer = new wxNotebookSizer( notebook );
#endif #endif
...@@ -179,7 +179,7 @@ ExtraPanel::ExtraPanel( intf_thread_t *_p_intf, wxWindow *_p_parent ): ...@@ -179,7 +179,7 @@ ExtraPanel::ExtraPanel( intf_thread_t *_p_intf, wxWindow *_p_parent ):
notebook->AddPage( EqzPanel( notebook ), wxU(_("Equalizer")) ); notebook->AddPage( EqzPanel( notebook ), wxU(_("Equalizer")) );
notebook->AddPage( AudioPanel( notebook ), wxU(_("Audio")) ); notebook->AddPage( AudioPanel( notebook ), wxU(_("Audio")) );
#if (!wxCHECK_VERSION(2,5,0)) #if (!wxCHECK_VERSION(2,5,2))
extra_sizer->Add( notebook_sizer, 1, wxEXPAND, 0 ); extra_sizer->Add( notebook_sizer, 1, wxEXPAND, 0 );
#else #else
extra_sizer->Add( notebook, 1, wxEXPAND, 0 ); extra_sizer->Add( notebook, 1, wxEXPAND, 0 );
......
...@@ -343,7 +343,11 @@ Interface::Interface( intf_thread_t *_p_intf, long style ): ...@@ -343,7 +343,11 @@ Interface::Interface( intf_thread_t *_p_intf, long style ):
s2 = video_window->GetSize(); s2 = video_window->GetSize();
s.SetHeight( s.GetHeight() - s2.GetHeight() ); s.SetHeight( s.GetHeight() - s2.GetHeight() );
} }
#if (wxCHECK_VERSION(2,5,4))
SetMinSize( s ); SetMinSize( s );
#else
frame_sizer->SetMinSize( s );
#endif
/* Show extended GUI if requested */ /* Show extended GUI if requested */
if( ( b_extra = config_GetInt( p_intf, "wx-extended" ) ) ) if( ( b_extra = config_GetInt( p_intf, "wx-extended" ) ) )
...@@ -745,7 +749,6 @@ void Interface::SetupHotkeys() ...@@ -745,7 +749,6 @@ void Interface::SetupHotkeys()
void Interface::HideSlider( bool layout ) void Interface::HideSlider( bool layout )
{ {
fprintf( stderr, "Hiding slider\n");
ShowSlider( false, layout ); ShowSlider( false, layout );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment