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
2169b78f
Commit
2169b78f
authored
Nov 30, 2010
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed preferences compilation
parent
fb09bf19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
modules/gui/macosx/prefs.m
modules/gui/macosx/prefs.m
+3
-3
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+10
-9
No files found.
modules/gui/macosx/prefs.m
View file @
2169b78f
...
...
@@ -56,7 +56,8 @@
#import "prefs.h"
#import "simple_prefs.h"
#import "prefs_widgets.h"
#import "vlc_keys.h"
#import <vlc_keys.h>
#import <vlc_modules.h>
/* /!\ Warning: Unreadable code :/ */
...
...
@@ -347,8 +348,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
/* Exclude empty plugins (submodules don't have config */
/* options, they are stored in the parent module) */
if
(
module_is_main
(
p_module
)
)
{
if
(
module_is_main
(
p_module
)
)
{
pluginItem
=
self
;
_configItems
=
module_config_get
(
p_module
,
&
confsize
);
_configSize
=
confsize
;
...
...
modules/gui/macosx/prefs_widgets.m
View file @
2169b78f
...
...
@@ -33,6 +33,7 @@
#endif
#include <vlc_common.h>
#include <vlc_modules.h>
#include <vlc_keys.h>
#include "intf.h"
...
...
@@ -1361,7 +1362,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
module_provides
(
p_parser
,
p_item
->
psz_type
)
)
{
NSString
*
o_description
=
[[
VLCMain
sharedInstance
]
localizedString:
module_
GetLongName
(
p_parser
)];
localizedString:
module_
get_name
(
p_parser
,
TRUE
)];
if
(
[
newval
isEqualToString
:
o_description
]
)
{
returnval
=
strdup
(
module_get_object
(
p_parser
));
...
...
@@ -1385,7 +1386,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
p_config
->
value
.
i
==
p_item
->
min
.
i
)
{
NSString
*
o_description
=
[[
VLCMain
sharedInstance
]
localizedString:
module_
GetLongName
(
p_parser
)];
localizedString:
module_
get_name
(
p_parser
,
TRUE
)];
if
(
[
newval
isEqualToString
:
o_description
]
)
{
returnval
=
strdup
(
module_get_object
(
p_parser
));
...
...
@@ -1415,7 +1416,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
module_provides
(
p_parser
,
p_item
->
psz_type
)
)
{
NSString
*
o_description
=
[[
VLCMain
sharedInstance
]
localizedString:
module_
GetLongName
(
p_parser
)];
localizedString:
module_
get_name
(
p_parser
,
TRUE
)];
[
o_popup
addItemWithTitle
:
o_description
];
char
*
psz_value
=
config_GetPsz
(
VLCIntf
,
p_item
->
psz_name
);
...
...
@@ -1443,7 +1444,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
config_GetInt
(
VLCIntf
,
p_item
->
psz_name
)
==
p_item
->
min
.
i
)
{
NSString
*
o_description
=
[[
VLCMain
sharedInstance
]
localizedString:
module_
GetLongName
(
p_parser
)];
localizedString:
module_
get_name
(
p_parser
,
TRUE
)];
[
o_popup
addItemWithTitle
:
o_description
];
char
*
psz_value
=
config_GetPsz
(
VLCIntf
,
p_item
->
psz_name
);
...
...
@@ -2093,11 +2094,11 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
o_keys_menu
=
[[
NSMenu
alloc
]
initWithTitle
:
@"Keys Menu"
];
#warning This does not work anymore. FIXME.
#if 0
for ( i = 0; i < sizeof(vlc_key
s
) / sizeof(key_descriptor_t); i++)
if( vlc_key
s
[i].psz_key_string )
for ( i = 0; i < sizeof(vlc_key) / sizeof(key_descriptor_t); i++)
if( vlc_key[i].psz_key_string )
POPULATE_A_KEY( o_keys_menu,
[NSString stringWithUTF8String:vlc_key
s
[i].psz_key_string]
, vlc_key
s
[i].i_key_code)
[NSString stringWithUTF8String:vlc_key[i].psz_key_string]
, vlc_key[i].i_key_code)
#endif
}
[
o_popup
setMenu
:[
o_keys_menu
copyWithZone
:
nil
]];
...
...
@@ -2180,7 +2181,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
p_config
->
value
.
i
==
_p_item
->
min
.
i
)
{
o_modulelongname
=
[
NSString
stringWithUTF8String
:
module_
GetLongName
(
p_parser
)];
module_
get_name
(
p_parser
,
TRUE
)];
o_modulename
=
[
NSString
stringWithUTF8String
:
module_get_object
(
p_parser
)];
...
...
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