[vlc-devel] [PATCH] macosx: Declare all of MainWindow's methods in its interfaces

Brendon Justin brendonjustin at gmail.com
Thu Aug 16 17:38:58 CEST 2012


Fixes compiler warnings for a few methods without declarations called
before their definitions.
---
 modules/gui/macosx/MainWindow.h |    4 ++++
 modules/gui/macosx/MainWindow.m |   19 +++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/modules/gui/macosx/MainWindow.h b/modules/gui/macosx/MainWindow.h
index d379ca1..b00baa7 100644
--- a/modules/gui/macosx/MainWindow.h
+++ b/modules/gui/macosx/MainWindow.h
@@ -148,7 +148,11 @@
 + (VLCMainWindow *)sharedInstance;
 
 - (IBAction)play:(id)sender;
+- (IBAction)prev:(id)sender;
+- (IBAction)backward:(id)sender;
 - (IBAction)bwd:(id)sender;
+- (IBAction)next:(id)sender;
+- (IBAction)forward:(id)sender;
 - (IBAction)fwd:(id)sender;
 - (IBAction)stop:(id)sender;
 - (IBAction)togglePlaylist:(id)sender;
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 9c1b02f..f12de66 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -42,6 +42,25 @@
 #import <vlc_services_discovery.h>
 #import <vlc_aout_intf.h>
 
+ at interface VLCMainWindow ()
+- (void)addJumpButtons;
+- (void)removeJumpButtons;
+- (void)addPlaymodeButtons;
+- (void)removePlaymodeButtons;
+
+- (void)resetPreviousButton;
+- (void)resetBackwardSkip;
+- (void)resetNextButton;
+- (void)resetForwardSkip;
+- (void)resizePlaylistAfterCollapse;
+- (void)makeSplitViewVisible;
+- (void)makeSplitViewHidden;
+
+- (NSRect)customConstrainFrameRect: (NSRect)frameRect toScreen: (NSScreen*)screen;
+
+- (NSString *)getCurrentTimeAsString:(input_thread_t *)p_input;
+ at end
+
 @implementation VLCMainWindow
 static const float f_min_video_height = 70.0;
 
-- 
1.7.9.6 (Apple Git-31.1)




More information about the vlc-devel mailing list