Commit 65103f63 authored by David Fuhrmann's avatar David Fuhrmann

macosx: use proper checkbox in advanced prefs

parent ea422217
...@@ -1877,20 +1877,18 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -1877,20 +1877,18 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if ([super initWithFrame: mainFrame item: _p_item] != nil) { if ([super initWithFrame: mainFrame item: _p_item] != nil) {
i_view_type = CONFIG_ITEM_BOOL; 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) if (p_item->psz_text)
o_labelString = _NS((char *)p_item->psz_text); o_labelString = _NS((char *)p_item->psz_text);
else else
o_labelString = @""; o_labelString = @"";
ADD_LABEL(o_label, mainFrame, [o_checkbox frame].size.width, 0, o_labelString, o_tooltip)
[o_label setAutoresizingMask:NSViewNotSizable ]; o_tooltip = [[VLCStringUtility sharedInstance] wrapString: _NS((char *)p_item->psz_longtext) toWidth: PREFS_WRAP];
[self addSubview: o_label];
/* 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; return self;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment