]> git.sesse.net Git - vlc/commitdiff
wxWidget 2.4 fix
authorChristophe Mutricy <xtophe@videolan.org>
Tue, 26 Jul 2005 11:10:38 +0000 (11:10 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Tue, 26 Jul 2005 11:10:38 +0000 (11:10 +0000)
modules/gui/wxwindows/updatevlc.cpp

index 09787a266012c3173733389e71af3bbf8d833c90..f9b40caabb169b0a0a04cfeb96412c3d0f65d75e 100644 (file)
@@ -128,11 +128,19 @@ UpdateVLC::UpdateVLC( intf_thread_t *_p_intf, wxWindow *p_parent ):
         new wxButton( panel, CheckForUpdate_Event,
                       wxU(_("Check for updates now !")) );
     subpanel_sizer->Add( update_button, 0, wxALL, 5 );
+//wxChoice constructor prototype changes with 2.5
+#if wxCHECK_VERSION(2,5,0)
     wxArrayString *choices_array = new wxArrayString();
     choices_array->Add( wxT("") );
     mirrors_choice =
         new wxChoice( panel, MirrorChoice_Event, wxDefaultPosition,
                       wxSize( 200, -1 ), *choices_array );
+#else
+    wxString choices_array = wxT("");
+    mirrors_choice =
+        new wxChoice( panel, -1, wxDefaultPosition,
+                      wxSize( 200, -1 ),1, *choices_array );
+#endif
     subpanel_sizer->Add( mirrors_choice, 0, wxALL, 5 );
     subpanel_sizer->Layout();
     panel_sizer->Add( subpanel_sizer, 0, wxALL , 0 );