Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
239a46ae
Commit
239a46ae
authored
Apr 12, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix the 'auto' selection of Console intf in "extra intfs" menu entry.
parent
2d938d88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
21 deletions
+4
-21
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+4
-21
No files found.
modules/gui/macosx/controls.m
View file @
239a46ae
...
...
@@ -435,7 +435,8 @@
o_data
=
[[
VLCMenuExt
alloc
]
initWithVar
:
psz_variable
Object
:
p_object
->
i_object_id
Value:
val
ofType
:
i_type
];
[
o_mi
setRepresentedObject
:
[
NSValue
valueWithPointer
:[
o_data
retain
]]];
[
o_mi
setState
:
val
.
b_bool
?
TRUE
:
FALSE
];
if
(
!
(
i_type
&
VLC_VAR_ISCOMMAND
)
)
[
o_mi
setState
:
val
.
b_bool
?
TRUE
:
FALSE
];
break
;
default:
...
...
@@ -517,24 +518,6 @@
switch
(
i_type
&
VLC_VAR_TYPE
)
{
case
VLC_VAR_VARIABLE
:
/* This is causing crashes for the moment.
o_title = [NSApp localizedString: text_list.p_list->p_values[i].psz_string ?
text_list.p_list->p_values[i].psz_string : val_list.p_list->p_values[i].psz_string ];
o_data = [[VLCMenuExt alloc] initWithVar: strdup(psz_variable) Object: p_object->i_object_id
Value: val ofType: i_type];
[o_lmi setRepresentedObject: [NSValue valueWithPointer:[o_data retain]]];
// Create a submenu
NSMenu *o_menu = [o_lmi submenu];
[self setupVarMenu: o_menu forMenuItem: o_lmi target:p_object
var:psz_variable selector:pf_callback];
*/
return
;
case
VLC_VAR_STRING
:
another_val
.
psz_string
=
strdup
(
val_list
.
p_list
->
p_values
[
i
].
psz_string
);
...
...
@@ -548,7 +531,7 @@
[
o_lmi
setRepresentedObject
:
[
NSValue
valueWithPointer
:[
o_data
retain
]]];
[
o_lmi
setTarget
:
self
];
if
(
!
strcmp
(
val
.
psz_string
,
val_list
.
p_list
->
p_values
[
i
].
psz_string
)
)
if
(
!
strcmp
(
val
.
psz_string
,
val_list
.
p_list
->
p_values
[
i
].
psz_string
)
&&
!
(
i_type
&
VLC_VAR_ISCOMMAND
)
)
[
o_lmi
setState
:
TRUE
];
break
;
...
...
@@ -566,7 +549,7 @@
[
o_lmi
setRepresentedObject
:
[
NSValue
valueWithPointer
:[
o_data
retain
]]];
[
o_lmi
setTarget
:
self
];
if
(
val_list
.
p_list
->
p_values
[
i
].
i_int
==
val
.
i_int
)
if
(
val_list
.
p_list
->
p_values
[
i
].
i_int
==
val
.
i_int
&&
!
(
i_type
&
VLC_VAR_ISCOMMAND
)
)
[
o_lmi
setState
:
TRUE
];
break
;
...
...
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