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
f78f3ae2
Commit
f78f3ae2
authored
Jan 27, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed 'intf-show' and 'intf-toggle-fscontrol' hotkeys
parent
94d0697d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+1
-0
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+19
-3
No files found.
modules/gui/macosx/intf.h
View file @
f78f3ae2
...
...
@@ -189,6 +189,7 @@ struct intf_sys_t
-
(
void
)
updateInfoandMetaPanel
;
-
(
void
)
updateMainMenu
;
-
(
void
)
updateMainWindow
;
-
(
void
)
showMainWindow
;
-
(
void
)
showFullscreenController
;
-
(
void
)
updateDelays
;
-
(
void
)
initStrings
;
...
...
modules/gui/macosx/intf.m
View file @
f78f3ae2
...
...
@@ -374,7 +374,16 @@ static int ShowController( vlc_object_t *p_this, const char *psz_variable,
intf_thread_t
*
p_intf
=
VLCIntf
;
if
(
p_intf
&&
p_intf
->
p_sys
)
{
// [[[VLCMain sharedInstance] fspanel] makeKeyAndOrderFront: nil];
playlist_t
*
p_playlist
=
pl_Get
(
p_intf
);
BOOL
b_fullscreen
=
var_GetBool
(
p_playlist
,
"fullscreen"
);
if
(
strcmp
(
psz_variable
,
"intf-toggle-fscontrol"
)
||
b_fullscreen
)
{
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
showFullscreenController
)
withObject
:
nil
waitUntilDone
:
NO
];
}
else
{
[[
VLCMain
sharedInstance
]
performSelectorOnMainThread
:
@selector
(
showMainWindow
)
withObject
:
nil
waitUntilDone
:
NO
];
}
}
return
VLC_SUCCESS
;
}
...
...
@@ -570,7 +579,8 @@ static VLCMain *_o_sharedMainInstance = nil;
var_AddCallback
(
p_playlist
,
"fullscreen"
,
FullscreenChanged
,
self
);
var_AddCallback
(
p_intf
->
p_libvlc
,
"intf-toggle-fscontrol"
,
ShowController
,
self
);
// var_AddCallback(p_playlist, "item-change", PLItemChanged, self);
var_AddCallback
(
p_intf
->
p_libvlc
,
"intf-show"
,
ShowController
,
self
);
// var_AddCallback(p_playlist, "item-change", PLItemChanged, self);
var_AddCallback
(
p_playlist
,
"item-current"
,
PLItemChanged
,
self
);
var_AddCallback
(
p_playlist
,
"activity"
,
PLItemChanged
,
self
);
var_AddCallback
(
p_playlist
,
"leaf-to-parent"
,
PlaylistUpdated
,
self
);
...
...
@@ -728,6 +738,7 @@ static VLCMain *_o_sharedMainInstance = nil;
var_DelCallback
(
p_playlist
,
"mute"
,
VolumeUpdated
,
self
);
var_DelCallback
(
p_playlist
,
"fullscreen"
,
FullscreenChanged
,
self
);
var_DelCallback
(
p_intf
->
p_libvlc
,
"intf-toggle-fscontrol"
,
ShowController
,
self
);
var_DelCallback
(
p_intf
->
p_libvlc
,
"intf-show"
,
ShowController
,
self
);
/* remove global observer watching for vout device changes correctly */
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
...
...
@@ -1398,9 +1409,14 @@ unsigned int CocoaKeyToVLC( unichar i_key )
[
o_mainwindow
updateWindow
];
}
-
(
void
)
showMainWindow
{
[
o_mainwindow
performSelectorOnMainThread
:
@selector
(
makeKeyAndOrderFront
:)
withObject
:
nil
waitUntilDone
:
NO
];
}
-
(
void
)
showFullscreenController
{
[
o_mainwindow
showFullscreenController
];
[
o_mainwindow
performSelectorOnMainThread
:
@selector
(
showFullscreenController
)
withObject
:
nil
waitUntilDone
:
NO
];
}
-
(
void
)
updateDelays
...
...
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