Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8fb46d38
Commit
8fb46d38
authored
Jul 05, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Try to clean a bit the prefs code.
parent
526bc3ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
42 deletions
+43
-42
modules/gui/macosx/prefs.m
modules/gui/macosx/prefs.m
+43
-42
No files found.
modules/gui/macosx/prefs.m
View file @
8fb46d38
...
...
@@ -311,61 +311,62 @@ static VLCTreeItem *o_root_item = nil;
NSString
*
o_child_help
;
switch
(
p_items
[
i
].
i_type
)
{
case
CONFIG_CATEGORY
:
if
(
p_items
[
i
].
value
.
i
==
-
1
)
break
;
o_child_name
=
[[
VLCMain
sharedInstance
]
localizedString:
config_CategoryNameGet
(
p_items
[
i
].
value
.
i
)];
o_child_title
=
o_child_name
;
o_child_help
=
[[
VLCMain
sharedInstance
]
localizedString:
config_CategoryHelpGet
(
p_items
[
i
].
value
.
i
)];
p_last_category
=
[
VLCTreeItem
alloc
];
[
o_children
addObject
:[
p_last_category
initWithName:
o_child_name
withTitle:
o_child_title
withHelp:
o_child_help
ID:
p_items
[
i
].
value
.
i
parent:
self
children:
[[
NSMutableArray
alloc
]
initWithCapacity:
10
]
whithCategory:
p_items
[
i
].
i_type
]];
break
;
case
CONFIG_SUBCATEGORY
:
if
(
p_items
[
i
].
value
.
i
==
-
1
)
break
;
if
(
p_items
[
i
].
value
.
i
!=
SUBCAT_PLAYLIST_GENERAL
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_VIDEO_GENERAL
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_INPUT_GENERAL
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_INTERFACE_GENERAL
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_SOUT_GENERAL
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_ADVANCED_MISC
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_AUDIO_GENERAL
)
{
case
CONFIG_CATEGORY
:
if
(
p_items
[
i
].
value
.
i
==
-
1
)
break
;
o_child_name
=
[[
VLCMain
sharedInstance
]
localizedString:
config_CategoryNameGet
(
p_items
[
i
].
value
.
i
)
];
localizedString:
config_CategoryNameGet
(
p_items
[
i
].
value
.
i
)];
o_child_title
=
o_child_name
;
o_child_help
=
[[
VLCMain
sharedInstance
]
localizedString:
config_CategoryHelpGet
(
p_items
[
i
].
value
.
i
)
];
[
p_last_category
->
o_children
addObject:
[[
VLCTreeItem
alloc
]
localizedString:
config_CategoryHelpGet
(
p_items
[
i
].
value
.
i
)];
p_last_category
=
[
VLCTreeItem
alloc
];
[
o_children
addObject
:[
p_last_category
initWithName:
o_child_name
withTitle:
o_child_title
withHelp:
o_child_help
ID:
p_items
[
i
].
value
.
i
parent:
p_last_category
parent:
self
children:
[[
NSMutableArray
alloc
]
initWithCapacity:
10
]
whithCategory:
p_items
[
i
].
i_type
]];
}
break
;
case
CONFIG_SUBCATEGORY
:
if
(
p_items
[
i
].
value
.
i
==
-
1
)
break
;
if
(
p_items
[
i
].
value
.
i
!=
SUBCAT_PLAYLIST_GENERAL
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_VIDEO_GENERAL
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_INPUT_GENERAL
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_INTERFACE_GENERAL
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_SOUT_GENERAL
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_ADVANCED_MISC
&&
p_items
[
i
].
value
.
i
!=
SUBCAT_AUDIO_GENERAL
)
{
o_child_name
=
[[
VLCMain
sharedInstance
]
localizedString:
config_CategoryNameGet
(
p_items
[
i
].
value
.
i
)
];
o_child_title
=
o_child_name
;
o_child_help
=
[[
VLCMain
sharedInstance
]
localizedString:
config_CategoryHelpGet
(
p_items
[
i
].
value
.
i
)
];
[
p_last_category
->
o_children
addObject:
[[
VLCTreeItem
alloc
]
initWithName:
o_child_name
withTitle:
o_child_title
withHelp:
o_child_help
ID:
p_items
[
i
].
value
.
i
parent:
p_last_category
children:
[[
NSMutableArray
alloc
]
initWithCapacity:
10
]
whithCategory:
p_items
[
i
].
i_type
]];
}
break
;
default:
break
;
break
;
default:
break
;
}
vlc_object_release
(
(
vlc_object_t
*
)
p_main_module
);
}
vlc_object_release
(
(
vlc_object_t
*
)
p_main_module
);
/* List the modules */
p_list
=
vlc_list_find
(
p_intf
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
if
(
!
p_list
)
return
nil
;
...
...
@@ -584,7 +585,7 @@ static VLCTreeItem *o_root_item = nil;
else
{
p_main_module
=
module_GetMainModule
(
p_intf
);
assert
(
!
p_main_module
);
assert
(
p_main_module
);
module_config_t
*
p_items
;
unsigned
int
i
,
confsize
;
...
...
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