* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#ifdef UPDATE_CHECK
/*****************************************************************************
* Preamble
*****************************************************************************/
#include "updatevlc.hpp"
+
+#ifdef UPDATE_CHECK
#include <wx/imaglist.h>
#include "bitmaps/update_ascii.xpm"
+ wxU(psz_tmp),
i_image );*/
- if( update_CompareReleaseToCurrent( p_update ) == UpdateReleaseStatusNewer )
- main_sizer->Add( new wxStaticText( this, -1, wxU( p_update->release.psz_desc )
+ if( update_NeedUpgrade( p_update ) )
+ {
+ update_release_t *p_release = update_GetRelease( p_update );
+ assert( p_release );
+ main_sizer->Add( new wxStaticText( this, -1, wxU( p_release->psz_desc )
+ wxU( "\nYou can download the latest version of VLC at the adress :\n" )
- + wxU( p_update->release.psz_url ) ) );
+ + wxU( p_release->psz_url ) ) );
+ }
else
main_sizer->Add( new wxStaticText( this, -1,
wxU( _( "\nYou have the latest version of VLC\n" ) ) ) );