]> git.sesse.net Git - vlc/commitdiff
macosx: use proper checkbox in advanced prefs
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Mon, 18 Feb 2013 18:11:18 +0000 (19:11 +0100)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Mon, 18 Feb 2013 18:27:27 +0000 (19:27 +0100)
modules/gui/macosx/prefs_widgets.m

index 10ea0324884d3ec79e2d2ad1e4fb26f99f05698c..7820f11b32f8cbde0d1fc8f01149302abfd84648 100644 (file)
@@ -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;
 }