Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
3b412814
Commit
3b412814
authored
Dec 30, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: show lua intfs in advanced preferences
hack adapted from the qt interface. close #7876
parent
7e96734b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+22
-0
No files found.
modules/gui/macosx/prefs_widgets.m
View file @
3b412814
...
...
@@ -2048,6 +2048,28 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
arrayWithObjects:
o_modulename
,
o_modulelongname
,
o_moduleenabled
,
nil
]];
}
/* Parental Advisory HACK:
* Selecting HTTP, RC and Telnet interfaces is difficult now
* since they are just the lua interface module */
if
(
p_config
->
i_type
==
CONFIG_SUBCATEGORY
&&
!
strcmp
(
module_get_object
(
p_parser
),
"lua"
)
&&
!
strcmp
(
_p_item
->
psz_name
,
"extraintf"
)
&&
p_config
->
value
.
i
==
_p_item
->
min
.
i
)
{
#define addLuaIntf(shortname, longname) \
if (_p_item->value.psz && strstr(_p_item->value.psz, shortname))\
o_moduleenabled = [NSNumber numberWithBool:YES];\
else\
o_moduleenabled = [NSNumber numberWithBool:NO];\
[o_modulearray addObject:[NSMutableArray arrayWithObjects: @shortname, _NS(longname), o_moduleenabled, nil]]
addLuaIntf
(
"http"
,
"Web"
);
addLuaIntf
(
"telnet"
,
"Telnet"
);
addLuaIntf
(
"cli"
,
"Console"
);
#undef addLuaIntf
}
}
module_config_free
(
p_configlist
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment