]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwindows/interface.cpp
VLC update checker in the wxWidgets interface (in help menu)
[vlc] / modules / gui / wxwindows / interface.cpp
index a1ca67beebfae28efb0674da97fc2f4b62e3af1a..378dbb8f34311239b504ad7a6540b4e11aade9a5 100644 (file)
@@ -156,6 +156,7 @@ enum
      * this standard value as otherwise it won't be handled properly under Mac
      * (where it is special and put into the "Apple" menu) */
     About_Event = wxID_ABOUT,
+    UpdateVLC_Event,
 
     Iconize_Event
 };
@@ -164,6 +165,7 @@ BEGIN_EVENT_TABLE(Interface, wxFrame)
     /* Menu events */
     EVT_MENU(Exit_Event, Interface::OnExit)
     EVT_MENU(About_Event, Interface::OnAbout)
+    EVT_MENU(UpdateVLC_Event, Interface::OnShowDialog)
 
     EVT_MENU(Playlist_Event, Interface::OnShowDialog)
     EVT_MENU(Logs_Event, Interface::OnShowDialog)
@@ -432,6 +434,8 @@ void Interface::CreateOurMenuBar()
     /* Create the "Help" menu */
     wxMenu *help_menu = new wxMenu;
     help_menu->Append( About_Event, wxU(_("About VLC media player")) );
+    help_menu->AppendSeparator();
+    help_menu->Append( UpdateVLC_Event, wxU(_("Check for updates ...")) );
 
     /* Append the freshly created menus to the menu bar... */
     wxMenuBar *menubar = new wxMenuBar();
@@ -913,6 +917,9 @@ void Interface::OnShowDialog( wxCommandEvent& event )
         case Bookmarks_Event:
             i_id = INTF_DIALOG_BOOKMARKS;
             break;
+        case UpdateVLC_Event:
+            i_id = INTF_DIALOG_UPDATEVLC;
+            break;
         default:
             i_id = INTF_DIALOG_FILE;
             break;