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
7dd8cdfd
Commit
7dd8cdfd
authored
May 11, 2005
by
Jérome Decoodt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the searchField in NSSearchField when macos >= 10.3
Move MACOS_VERSION macro to intf.h
parent
c37c7fd5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
5 deletions
+30
-5
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+4
-0
modules/gui/macosx/playlist.h
modules/gui/macosx/playlist.h
+1
-0
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+25
-1
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+0
-4
No files found.
modules/gui/macosx/intf.h
View file @
7dd8cdfd
...
@@ -45,6 +45,10 @@ unsigned int CocoaKeyToVLC( unichar i_key );
...
@@ -45,6 +45,10 @@ unsigned int CocoaKeyToVLC( unichar i_key );
* the translated string. the translation should be '1:translatedstring' though */
* the translated string. the translation should be '1:translatedstring' though */
#define _ANS(s) [[[VLCMain sharedInstance] localizedString: _(s)] substringFromIndex:2]
#define _ANS(s) [[[VLCMain sharedInstance] localizedString: _(s)] substringFromIndex:2]
#define MACOS_VERSION [[[NSDictionary dictionaryWithContentsOfFile: \
@"/System/Library/CoreServices/SystemVersion.plist"] \
objectForKey: @"ProductVersion"] floatValue]
/*****************************************************************************
/*****************************************************************************
* intf_sys_t: description and status of the interface
* intf_sys_t: description and status of the interface
*****************************************************************************/
*****************************************************************************/
...
...
modules/gui/macosx/playlist.h
View file @
7dd8cdfd
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
}
}
-
(
void
)
initStrings
;
-
(
void
)
initStrings
;
-
(
void
)
searchfieldChanged
:(
NSNotification
*
)
o_notification
;
-
(
NSMenu
*
)
menuForEvent
:(
NSEvent
*
)
o_event
;
-
(
NSMenu
*
)
menuForEvent
:(
NSEvent
*
)
o_event
;
-
(
NSOutlineView
*
)
outlineView
;
-
(
NSOutlineView
*
)
outlineView
;
...
...
modules/gui/macosx/playlist.m
View file @
7dd8cdfd
...
@@ -187,10 +187,35 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
...
@@ -187,10 +187,35 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
vlc_list_release
(
p_list
);
vlc_list_release
(
p_list
);
vlc_object_release
(
p_playlist
);
vlc_object_release
(
p_playlist
);
/* Change the simple textfield into a searchField if we can... */
if
(
MACOS_VERSION
>=
10
.
3
)
{
NSView
*
o_parentview
=
[
o_status_field
superview
];
NSSearchField
*
o_better_search_field
=
[[
NSSearchField
alloc
]
initWithFrame
:[
o_search_field
frame
]];
[
o_better_search_field
setRecentsAutosaveName
:
@"VLC media player search"
];
[
o_better_search_field
setDelegate
:
self
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector:
@selector
(
searchfieldChanged
:)
name:
NSControlTextDidChangeNotification
object:
o_better_search_field
];
[
o_better_search_field
setTarget
:
self
];
[
o_better_search_field
setAction
:
@selector
(
searchItem
:)];
[
o_better_search_field
setAutoresizingMask
:
NSViewMinXMargin
];
[
o_parentview
addSubview
:
o_better_search_field
];
[
o_search_field
setHidden
:
YES
];
}
[
self
initStrings
];
[
self
initStrings
];
//[self playlistUpdated];
//[self playlistUpdated];
}
}
-
(
void
)
searchfieldChanged
:(
NSNotification
*
)
o_notification
{
[
o_search_field
setStringValue
:[[
o_notification
object
]
stringValue
]];
}
-
(
void
)
initStrings
-
(
void
)
initStrings
{
{
[
o_mi_save_playlist
setTitle
:
_NS
(
"Save Playlist..."
)];
[
o_mi_save_playlist
setTitle
:
_NS
(
"Save Playlist..."
)];
...
@@ -838,7 +863,6 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
...
@@ -838,7 +863,6 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
if
(
p_playlist
==
NULL
)
if
(
p_playlist
==
NULL
)
return
;
return
;
p_view
=
playlist_ViewFind
(
p_playlist
,
i_current_view
);
p_view
=
playlist_ViewFind
(
p_playlist
,
i_current_view
);
if
(
p_view
)
if
(
p_view
)
...
...
modules/gui/macosx/prefs_widgets.m
View file @
7dd8cdfd
...
@@ -38,10 +38,6 @@
...
@@ -38,10 +38,6 @@
#define OFFSET_RIGHT 20
#define OFFSET_RIGHT 20
#define OFFSET_BETWEEN 2
#define OFFSET_BETWEEN 2
#define MACOS_VERSION [[[NSDictionary dictionaryWithContentsOfFile: \
@"/System/Library/CoreServices/SystemVersion.plist"] \
objectForKey: @"ProductVersion"] floatValue]
#define UPWARDS_WHITE_ARROW "\xE2\x87\xA7"
#define UPWARDS_WHITE_ARROW "\xE2\x87\xA7"
#define OPTION_KEY "\xE2\x8C\xA5"
#define OPTION_KEY "\xE2\x8C\xA5"
#define UP_ARROWHEAD "\xE2\x8C\x83"
#define UP_ARROWHEAD "\xE2\x8C\x83"
...
...
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