]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/intf.m
* small clean-up, so the about-class is not needed in the main-nib anymore
[vlc] / modules / gui / macosx / intf.m
index afb39695c810c0067503f603740e1998340e1064..ce7710ee2220e0b2de882a612cc63f08176f7960 100644 (file)
@@ -36,6 +36,7 @@
 #include "prefs.h"
 #include "playlist.h"
 #include "controls.h"
+#include "about.h"
 
 /*****************************************************************************
  * Local prototypes.
@@ -289,7 +290,9 @@ static VLCMain *_o_sharedMainInstance = nil;
     } else {
         _o_sharedMainInstance = [super init];
     }
-
+    
+    o_about = [[VLAboutBox alloc] init];
+    
     return _o_sharedMainInstance;
 }
 
@@ -1277,6 +1280,11 @@ static VLCMain *_o_sharedMainInstance = nil;
     [self application: nil openFile: [sender title]];
 }
 
+- (IBAction)viewAbout:(id)sender
+{
+    [o_about showPanel];
+}
+
 - (IBAction)viewPreferences:(id)sender
 {
     [o_prefs showPrefs];