]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/dialogs/updatevlc.cpp
use a pointer to a function instead of a callback
[vlc] / modules / gui / wxwidgets / dialogs / updatevlc.cpp
index b4e0f6d6f6cdc185e192ed7d46d95ea10f34af64..68100057075d48a3a15d6f174738866dec159437 100644 (file)
@@ -21,6 +21,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef UPDATE_CHECK
+
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
@@ -98,7 +100,7 @@ void UpdateVLC::OnClose( wxCloseEvent& WXUNUSED(event) )
 
 void UpdateVLC::OnCheckForUpdate( wxCommandEvent& event )
 {
-    update_Check( p_update );
+    update_Check( p_update, NULL, this );
     wxBoxSizer *main_sizer = new wxBoxSizer( wxVERTICAL );
 
     DestroyChildren();
@@ -120,3 +122,4 @@ void UpdateVLC::OnCheckForUpdate( wxCommandEvent& event )
     SetSizerAndFit( main_sizer );
     Layout();
 }
+#endif