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
7f48cb43
Commit
7f48cb43
authored
Jul 24, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: display preferences windows on a level >= video window
parent
41631564
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
4 deletions
+18
-4
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+5
-1
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+2
-0
modules/gui/macosx/prefs.h
modules/gui/macosx/prefs.h
+1
-1
modules/gui/macosx/prefs.m
modules/gui/macosx/prefs.m
+2
-1
modules/gui/macosx/simple_prefs.h
modules/gui/macosx/simple_prefs.h
+1
-0
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+7
-1
No files found.
modules/gui/macosx/MainMenu.m
View file @
7f48cb43
...
...
@@ -855,7 +855,11 @@ static VLCMainMenu *_o_sharedInstance = nil;
-
(
IBAction
)
viewPreferences
:(
id
)
sender
{
[[[
VLCMain
sharedInstance
]
simplePreferences
]
showSimplePrefs
];
NSInteger
i_level
=
NSNormalWindowLevel
;
NSInteger
i_video_window_level
=
[[[[
VLCMainWindow
sharedInstance
]
videoView
]
window
]
level
];
if
(
i_video_window_level
==
NSStatusWindowLevel
)
i_level
=
NSStatusWindowLevel
;
[[[
VLCMain
sharedInstance
]
simplePreferences
]
showSimplePrefsWithLevel
:
i_level
];
}
#pragma mark -
...
...
modules/gui/macosx/MainWindow.m
View file @
7f48cb43
...
...
@@ -1859,6 +1859,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
if
(
[
self
level
]
!=
NSNormalWindowLevel
)
[
self
setLevel
:
NSNormalWindowLevel
];
if
(
[
o_detached_video_window
level
]
!=
NSNormalWindowLevel
)
[
o_detached_video_window
setLevel
:
NSNormalWindowLevel
];
// restore alpha value to 1 for the case that macosx-opaqueness is set to < 1
[
self
setAlphaValue
:
1
.
0
];
...
...
modules/gui/macosx/prefs.h
View file @
7f48cb43
...
...
@@ -47,7 +47,7 @@
-
(
void
)
initStrings
;
-
(
void
)
setTitle
:
(
NSString
*
)
o_title_name
;
-
(
void
)
showPrefs
;
-
(
void
)
showPrefs
WithLevel
:(
NSInteger
)
i_window_level
;
-
(
IBAction
)
savePrefs
:
(
id
)
sender
;
-
(
IBAction
)
closePrefs
:
(
id
)
sender
;
-
(
IBAction
)
resetAll
:
(
id
)
sender
;
...
...
modules/gui/macosx/prefs.m
View file @
7f48cb43
...
...
@@ -195,8 +195,9 @@ static VLCPrefs *_o_sharedMainInstance = nil;
[
o_title
setStringValue
:
o_title_name
];
}
-
(
void
)
showPrefs
-
(
void
)
showPrefs
WithLevel
:(
NSInteger
)
i_window_level
{
[
o_prefs_window
setLevel
:
i_window_level
];
[
o_prefs_window
center
];
[
o_prefs_window
makeKeyAndOrderFront
:
self
];
[
_rootTreeItem
resetView
];
...
...
modules/gui/macosx/simple_prefs.h
View file @
7f48cb43
...
...
@@ -196,6 +196,7 @@ IBOutlet id o_intf_mediakeys_ckb;
-
(
void
)
initStrings
;
-
(
void
)
resetControls
;
-
(
void
)
showSimplePrefs
;
-
(
void
)
showSimplePrefsWithLevel
:(
NSInteger
)
i_window_level
;
-
(
IBAction
)
buttonAction
:(
id
)
sender
;
-
(
void
)
sheetDidEnd
:(
NSWindow
*
)
o_sheet
...
...
modules/gui/macosx/simple_prefs.m
View file @
7f48cb43
...
...
@@ -740,6 +740,12 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
[
o_sprefs_win
makeKeyAndOrderFront
:
self
];
}
-
(
void
)
showSimplePrefsWithLevel
:(
NSInteger
)
i_window_level
{
[
o_sprefs_win
setLevel
:
i_window_level
];
[
self
showSimplePrefs
];
}
-
(
IBAction
)
buttonAction
:(
id
)
sender
{
if
(
sender
==
o_sprefs_cancel_btn
)
...
...
@@ -762,7 +768,7 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
else
if
(
sender
==
o_sprefs_showAll_btn
)
{
[
o_sprefs_win
orderOut
:
self
];
[[[
VLCMain
sharedInstance
]
preferences
]
showPrefs
];
[[[
VLCMain
sharedInstance
]
preferences
]
showPrefs
WithLevel
:[
o_sprefs_win
level
]
];
}
else
msg_Warn
(
p_intf
,
"unknown buttonAction sender"
);
...
...
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