[vlc-commits] macosx: group methods in simple_prefs.m for better clarity

David Fuhrmann git at videolan.org
Tue Mar 13 14:18:45 CET 2012


vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Mar 13 14:09:29 2012 +0100| [c9c04bd360b91002101492db8df3ce767fdcfe45] | committer: David Fuhrmann

macosx: group methods in simple_prefs.m for better clarity
(cherry picked from commit 31f985a586958bfb31779936555e4bb98cebc71b)

Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=c9c04bd360b91002101492db8df3ce767fdcfe45
---

 modules/gui/macosx/simple_prefs.m |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index b5627c8..758c078 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -50,6 +50,8 @@ static NSString* VLCHotkeysSettingToolbarIdentifier = @"Hotkeys Settings Item Id
 
 static VLCSimplePrefs *_o_sharedInstance = nil;
 
+#pragma mark Initialisation
+
 + (VLCSimplePrefs *)sharedInstance
 {
     return _o_sharedInstance ? _o_sharedInstance : [[self alloc] init];
@@ -343,6 +345,9 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
     return NULL;
 }
 
+#pragma mark -
+#pragma mark Setup controls
+
 - (void)setupButton: (NSPopUpButton *)object forStringList: (const char *)name
 {
     module_config_t *p_item;
@@ -704,6 +709,9 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
     [o_hotkeys_listbox reloadData];
 }
 
+#pragma mark -
+#pragma mark General actions
+
 - (void)showSimplePrefs
 {
     /* we want to show the interface settings, if no category was chosen */
@@ -1034,6 +1042,9 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
     [o_currentlyShownCategoryView retain];
 }
 
+#pragma mark -
+#pragma mark Specific actions
+
 - (IBAction)interfaceSettingChanged:(id)sender
 {
     if( sender == o_intf_embedded_ckb && [o_intf_embedded_ckb state] == NSOffState )
@@ -1226,6 +1237,9 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
     [self showSettingsForCategory: o_input_view];
 }
 
+#pragma mark -
+#pragma mark Hotkey actions
+
 - (void)hotkeyTableDoubleClick:(id)object
 {
     // -1 is header



More information about the vlc-commits mailing list