Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c30432e5
Commit
c30432e5
authored
Apr 27, 2008
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be sure to declare NSInteger if it isn't present
parent
76d3144d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+6
-0
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+3
-3
No files found.
modules/gui/macosx/intf.h
View file @
c30432e5
...
...
@@ -37,6 +37,12 @@
#include <Cocoa/Cocoa.h>
/* this was introduced in Darwin 9. We need to declare it to prevent both
* compilation warnings and errors */
#ifndef NSInteger
#define NSInteger int
#endif
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
...
...
modules/gui/macosx/simple_prefs.m
View file @
c30432e5
...
...
@@ -431,7 +431,7 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
[
o_video_device_pop
addItemWithTitle
:
[
NSString
stringWithFormat
:
@"%@ %i (%ix%i)"
,
_NS
(
"Screen"
),
i
+
1
,
(
int
)
s_rect
.
size
.
width
,
(
int
)
s_rect
.
size
.
height
]];
[[
o_video_device_pop
lastItem
]
setTag
:
[[[
NSScreen
screens
]
objectAtIndex
:
i
]
displayID
]];
[[
o_video_device_pop
lastItem
]
setTag
:
(
int
)
[[[
NSScreen
screens
]
objectAtIndex
:
i
]
displayID
]];
i
++
;
}
[
o_video_device_pop
selectItemAtIndex
:
0
];
...
...
@@ -1146,12 +1146,12 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
[
self
showSettingsForCategory
:
o_hotkeys_view
];
}
-
(
NSInteger
)
numberOfRowsInTableView
:(
NSTableView
*
)
aTableView
-
(
int
)
numberOfRowsInTableView
:(
NSTableView
*
)
aTableView
{
return
[
o_hotkeySettings
count
];
}
-
(
id
)
tableView
:(
NSTableView
*
)
aTableView
objectValueForTableColumn
:(
NSTableColumn
*
)
aTableColumn
row
:(
NSInteger
)
rowIndex
-
(
id
)
tableView
:(
NSTableView
*
)
aTableView
objectValueForTableColumn
:(
NSTableColumn
*
)
aTableColumn
row
:(
int
)
rowIndex
{
if
(
[[
aTableColumn
identifier
]
isEqualToString
:
@"action"
]
)
return
[
o_hotkeyDescriptions
objectAtIndex
:
rowIndex
];
...
...
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