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
940a60aa
Commit
940a60aa
authored
Jul 04, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed prefs compilation and fixed an appearance issue
parent
1a95c088
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
17 deletions
+15
-17
modules/gui/macosx/prefs_widgets.h
modules/gui/macosx/prefs_widgets.h
+2
-4
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+13
-13
No files found.
modules/gui/macosx/prefs_widgets.h
View file @
940a60aa
...
@@ -21,9 +21,8 @@
...
@@ -21,9 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#define CONFIG_ITEM_STRING_LIST (CONFIG_ITEM_STRING + 1)
#define CONFIG_ITEM_STRING_LIST (CONFIG_ITEM_STRING + 10)
#define CONFIG_ITEM_RANGED_INTEGER (CONFIG_ITEM_INTEGER + 1)
#define CONFIG_ITEM_RANGED_INTEGER (CONFIG_ITEM_INTEGER + 10)
#define CONFIG_ITEM_KEY_AFTER_10_3 (CONFIG_ITEM_KEY + 2)
#define LEFTMARGIN 18
#define LEFTMARGIN 18
#define RIGHTMARGIN 18
#define RIGHTMARGIN 18
...
@@ -208,5 +207,4 @@ static NSMenu *o_keys_menu = nil;
...
@@ -208,5 +207,4 @@ static NSMenu *o_keys_menu = nil;
//#undef CONFIG_ITEM_LIST_STRING
//#undef CONFIG_ITEM_LIST_STRING
//#undef CONFIG_ITEM_RANGED_INTEGER
//#undef CONFIG_ITEM_RANGED_INTEGER
//#undef CONFIG_ITEM_KEY_AFTER_10_3
modules/gui/macosx/prefs_widgets.m
View file @
940a60aa
...
@@ -469,7 +469,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -469,7 +469,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
i_margin
=
7
;
i_margin
=
7
;
break
;
break
;
case
CONFIG_ITEM_KEY
_AFTER_10_3
:
case
CONFIG_ITEM_KEY
:
i_margin
=
6
;
i_margin
=
6
;
break
;
break
;
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
...
@@ -506,7 +506,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -506,7 +506,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
i_margin
=
7
;
i_margin
=
7
;
break
;
break
;
case
CONFIG_ITEM_KEY
_AFTER_10_3
:
case
CONFIG_ITEM_KEY
:
i_margin
=
6
;
i_margin
=
6
;
break
;
break
;
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
...
@@ -544,7 +544,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -544,7 +544,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
i_margin
=
10
;
i_margin
=
10
;
break
;
break
;
case
CONFIG_ITEM_KEY
_AFTER_10_3
:
case
CONFIG_ITEM_KEY
:
i_margin
=
9
;
i_margin
=
9
;
break
;
break
;
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
...
@@ -581,7 +581,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -581,7 +581,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
i_margin
=
8
;
i_margin
=
8
;
break
;
break
;
case
CONFIG_ITEM_KEY
_AFTER_10_3
:
case
CONFIG_ITEM_KEY
:
i_margin
=
7
;
i_margin
=
7
;
break
;
break
;
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
...
@@ -618,7 +618,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -618,7 +618,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
i_margin
=
7
;
i_margin
=
7
;
break
;
break
;
case
CONFIG_ITEM_KEY
_AFTER_10_3
:
case
CONFIG_ITEM_KEY
:
i_margin
=
6
;
i_margin
=
6
;
break
;
break
;
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
...
@@ -655,7 +655,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -655,7 +655,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
i_margin
=
7
;
i_margin
=
7
;
break
;
break
;
case
CONFIG_ITEM_KEY
_AFTER_10_3
:
case
CONFIG_ITEM_KEY
:
i_margin
=
6
;
i_margin
=
6
;
break
;
break
;
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
...
@@ -692,7 +692,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -692,7 +692,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
i_margin
=
7
;
i_margin
=
7
;
break
;
break
;
case
CONFIG_ITEM_KEY
_AFTER_10_3
:
case
CONFIG_ITEM_KEY
:
i_margin
=
5
;
i_margin
=
5
;
break
;
break
;
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
...
@@ -703,7 +703,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -703,7 +703,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
break
;
break
;
}
}
break
;
break
;
case
CONFIG_ITEM_KEY
_AFTER_10_3
:
case
CONFIG_ITEM_KEY
:
switch
(
i_lastItem
)
switch
(
i_lastItem
)
{
{
case
CONFIG_ITEM_STRING
:
case
CONFIG_ITEM_STRING
:
...
@@ -729,7 +729,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -729,7 +729,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
i_margin
=
7
;
i_margin
=
7
;
break
;
break
;
case
CONFIG_ITEM_KEY
_AFTER_10_3
:
case
CONFIG_ITEM_KEY
:
i_margin
=
8
;
i_margin
=
8
;
break
;
break
;
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
...
@@ -766,7 +766,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -766,7 +766,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
i_margin
=
7
;
i_margin
=
7
;
break
;
break
;
case
CONFIG_ITEM_KEY
_AFTER_10_3
:
case
CONFIG_ITEM_KEY
:
i_margin
=
5
;
i_margin
=
5
;
break
;
break
;
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
...
@@ -826,7 +826,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -826,7 +826,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
];
withView:
o_parent_view
];
}
}
else
if
(
_p_item
->
min
.
i
!=
0
||
_p_item
->
max
.
i
!=
0
)
else
if
(
(
_p_item
->
min
.
i
!=
0
||
_p_item
->
max
.
i
!=
0
)
&&
(
_p_item
->
min
.
i
!=
INT_MIN
||
_p_item
->
max
.
i
!=
INT_MAX
)
)
{
{
p_control
=
[[
RangedIntegerConfigControl
alloc
]
p_control
=
[[
RangedIntegerConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
...
@@ -845,7 +845,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -845,7 +845,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
withView:
o_parent_view
];
withView:
o_parent_view
];
break
;
break
;
case
CONFIG_ITEM_FLOAT
:
case
CONFIG_ITEM_FLOAT
:
if
(
_p_item
->
min
.
f
!=
0
||
_p_item
->
max
.
f
!=
0
)
if
(
(
_p_item
->
min
.
i
!=
0
||
_p_item
->
max
.
i
!=
0
)
&&
(
_p_item
->
min
.
i
!=
INT_MIN
||
_p_item
->
max
.
i
!=
INT_MAX
)
)
{
{
p_control
=
[[
RangedFloatConfigControl
alloc
]
p_control
=
[[
RangedFloatConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
...
@@ -2073,7 +2073,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
...
@@ -2073,7 +2073,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_KEY
_AFTER_10_3
;
i_view_type
=
CONFIG_ITEM_KEY
;
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
[[
VLCMain
sharedInstance
]
...
...
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