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
d15f96b0
Commit
d15f96b0
authored
Apr 10, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: make sure to generate a complete list of hotkeys in the sprefs
parent
0ab3e4cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
NEWS
NEWS
+1
-0
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+20
-11
No files found.
NEWS
View file @
d15f96b0
...
...
@@ -5,6 +5,7 @@ Mac OS X Interface:
* fixed bugs in the Streaming / Transcoding wizard
* improved Apple Remote handling
* layout fixes in the Preferences and Controls windows
* fixed incomplete list of hotkeys in the Preferences dialog
Mac OS X Port:
* fixed Growl local notification plugin
...
...
modules/gui/macosx/simple_prefs.m
View file @
d15f96b0
...
...
@@ -645,23 +645,32 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
/********************
* hotkeys settings *
********************/
const
struct
hotkey
*
p_hotkeys
=
p_intf
->
p_libvlc
->
p_hotkeys
;
[
o_hotkeySettings
release
];
o_hotkeySettings
=
[[
NSMutableArray
alloc
]
init
];
NSMutableArray
*
o_tempArray_desc
=
[[
NSMutableArray
alloc
]
init
];
i
=
1
;
while
(
i
<
100
)
{
p_item
=
config_FindConfig
(
VLC_OBJECT
(
p_intf
),
p_hotkeys
[
i
].
psz_action
);
if
(
!
p_item
)
break
;
[
o_tempArray_desc
addObject
:
_NS
(
p_item
->
psz_text
)];
[
o_hotkeySettings
addObject
:
[
NSNumber
numberWithInt
:
p_item
->
value
.
i
]];
module_t
*
p_main
=
module_get_main
();
assert
(
p_main
);
unsigned
confsize
;
module_config_t
*
p_config
;
i
++
;
p_config
=
module_config_get
(
p_main
,
&
confsize
);
for
(
size_t
i
=
0
;
i
<
confsize
;
i
++
)
{
module_config_t
*
p_item
=
p_config
+
i
;
if
(
(
p_item
->
i_type
&
CONFIG_ITEM
)
&&
p_item
->
psz_name
!=
NULL
&&
!
strncmp
(
p_item
->
psz_name
,
"key-"
,
4
)
&&
!
EMPTY_STR
(
p_item
->
psz_text
)
)
{
[
o_tempArray_desc
addObject
:
_NS
(
p_item
->
psz_text
)];
[
o_hotkeySettings
addObject
:
[
NSNumber
numberWithInt
:
p_item
->
value
.
i
]];
}
}
module_config_free
(
p_config
);
module_release
(
p_main
);
[
o_hotkeyDescriptions
release
];
o_hotkeyDescriptions
=
[[
NSArray
alloc
]
initWithArray
:
o_tempArray_desc
copyItems
:
YES
];
[
o_tempArray_desc
release
];
...
...
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