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
5219cf6d
Commit
5219cf6d
authored
Apr 26, 2004
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/interface/interface.c:
+ Only populate the "switch interface" menu with modules that we have.
parent
2a3c9c38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
6 deletions
+29
-6
src/interface/interface.c
src/interface/interface.c
+29
-6
No files found.
src/interface/interface.c
View file @
5219cf6d
...
...
@@ -240,6 +240,17 @@ static void Manager( intf_thread_t *p_intf )
*****************************************************************************/
static
void
RunInterface
(
intf_thread_t
*
p_intf
)
{
static
char
*
ppsz_interfaces
[]
=
{
"skins"
,
"Skins"
,
"skins2"
,
"Skins 2"
,
"wxwindows"
,
"wxWindows"
,
NULL
,
NULL
};
char
**
ppsz_parser
;
vlc_list_t
*
p_list
;
int
i
;
vlc_value_t
val
,
text
;
char
*
psz_intf
;
...
...
@@ -250,12 +261,24 @@ static void RunInterface( intf_thread_t *p_intf )
text
.
psz_string
=
_
(
"Switch interface"
);
var_Change
(
p_intf
,
"intf-switch"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
val
.
psz_string
=
"skins"
;
text
.
psz_string
=
"Skins"
;
var_Change
(
p_intf
,
"intf-switch"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
"skins2"
;
text
.
psz_string
=
"Skins 2"
;
var_Change
(
p_intf
,
"intf-switch"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
"wxwin"
;
text
.
psz_string
=
"wxWindows"
;
var_Change
(
p_intf
,
"intf-switch"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
/* Only fill the list with available modules */
p_list
=
vlc_list_find
(
p_intf
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
for
(
ppsz_parser
=
ppsz_interfaces
;
*
ppsz_parser
;
ppsz_parser
+=
2
)
{
for
(
i
=
0
;
i
<
p_list
->
i_count
;
i
++
)
{
module_t
*
p_module
=
(
module_t
*
)
p_list
->
p_values
[
i
].
p_object
;
if
(
!
strcmp
(
p_module
->
psz_object_name
,
ppsz_parser
[
0
]
)
)
{
val
.
psz_string
=
ppsz_parser
[
0
];
text
.
psz_string
=
ppsz_parser
[
1
];
var_Change
(
p_intf
,
"intf-switch"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
break
;
}
}
}
vlc_list_release
(
p_list
);
var_AddCallback
(
p_intf
,
"intf-switch"
,
SwitchIntfCallback
,
NULL
);
...
...
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