vlc | branch: master | David Fuhrmann <[email protected]> | Mon Feb 
18 19:11:18 2013 +0100| [65103f6361d9285ab59989e491fff93a92c0763c] | committer: 
David Fuhrmann

macosx: use proper checkbox in advanced prefs

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

 modules/gui/macosx/prefs_widgets.m |   18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/modules/gui/macosx/prefs_widgets.m 
b/modules/gui/macosx/prefs_widgets.m
index 10ea032..7820f11 100644
--- a/modules/gui/macosx/prefs_widgets.m
+++ b/modules/gui/macosx/prefs_widgets.m
@@ -1877,20 +1877,18 @@ o_textfield = [[[NSSecureTextField alloc] 
initWithFrame: s_rc] retain];     \
     if ([super initWithFrame: mainFrame item: _p_item] != nil) {
         i_view_type = CONFIG_ITEM_BOOL;
 
-        /* add the checkbox */
-        o_tooltip = [[VLCStringUtility sharedInstance] wrapString: _NS((char 
*)p_item->psz_longtext) toWidth: PREFS_WRAP];
-        ADD_CHECKBOX(o_checkbox, mainFrame, 0,
-                        0, @"", o_tooltip, p_item->value.i, NSImageLeft)
-        [o_checkbox setAutoresizingMask:NSViewNotSizable ];
-        [self addSubview: o_checkbox];
-        /* add the label */
         if (p_item->psz_text)
             o_labelString = _NS((char *)p_item->psz_text);
         else
             o_labelString = @"";
-        ADD_LABEL(o_label, mainFrame, [o_checkbox frame].size.width, 0, 
o_labelString, o_tooltip)
-        [o_label setAutoresizingMask:NSViewNotSizable ];
-        [self addSubview: o_label];
+
+        o_tooltip = [[VLCStringUtility sharedInstance] wrapString: _NS((char 
*)p_item->psz_longtext) toWidth: PREFS_WRAP];
+
+        /* add the checkbox */
+        ADD_CHECKBOX(o_checkbox, mainFrame, 0,
+                        0, o_labelString, o_tooltip, p_item->value.i, 
NSImageLeft)
+        [o_checkbox setAutoresizingMask:NSViewNotSizable ];
+        [self addSubview: o_checkbox];
     }
     return self;
 }

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to