]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/intf.m
* forgot these 2 files
[vlc] / modules / gui / macosx / intf.m
index 8b808ac1ca5e09a7513eaa0466501f04a156d85a..82118d90879dd2b7580e849a27d9aa2f6236df62 100644 (file)
@@ -41,6 +41,7 @@
 #include "wizard.h"
 #include "extended.h"
 #include "bookmarks.h"
+#include "update.h"
 
 /*****************************************************************************
  * Local prototypes.
@@ -302,6 +303,7 @@ static VLCMain *_o_sharedMainInstance = nil;
     o_wizard = [[VLCWizard alloc] init];
     o_extended = [[VLCExtended alloc] init];
     o_bookmarks = [[VLCBookmarks alloc] init];
+    o_update = [[VLCUpdate alloc] init];
 
     i_lastShownVolume = -1;
     return _o_sharedMainInstance;
@@ -460,6 +462,7 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     /* main menu */
     [o_mi_about setTitle: _NS("About VLC media player...")];
+    [o_mi_checkForUpdate setTitle: _NS("Check for update...")];
     [o_mi_prefs setTitle: _NS("Preferences...")];
     [o_mi_add_intf setTitle: _NS("Add Interface")];
     [o_mu_add_intf setTitle: _NS("Add Interface")];
@@ -1531,6 +1534,17 @@ static VLCMain *_o_sharedMainInstance = nil;
     [o_prefs showPrefs];
 }
 
+- (IBAction)checkForUpdate:(id)sender
+{
+    if (!nib_update_loaded)
+    {
+        nib_update_loaded = [NSBundle loadNibNamed:@"Update" owner:self];
+        [o_update showUpdateWindow];
+    } else {
+        [o_update showUpdateWindow];
+    }
+}
+
 - (IBAction)closeError:(id)sender
 {
     vlc_value_t val;