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
15f19b6e
Commit
15f19b6e
authored
Jul 29, 2010
by
Juho Vähä-Herttua
Committed by
Jean-Baptiste Kempf
Jul 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Make the systray menu work much nicer on Mac
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
0b86dfab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+4
-0
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+3
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
15f19b6e
...
...
@@ -971,7 +971,11 @@ void MainInterface::handleSystrayClick(
{
case
QSystemTrayIcon
:
:
Trigger
:
case
QSystemTrayIcon
:
:
DoubleClick
:
#ifdef Q_WS_MAC:
QVLCMenu
::
updateSystrayMenu
(
this
,
p_intf
);
#else
toggleUpdateSystrayMenu
();
#endif
break
;
case
QSystemTrayIcon
:
:
MiddleClick
:
sysTray
->
showMessage
(
qtr
(
"VLC media player"
),
...
...
modules/gui/qt4/menus.cpp
View file @
15f19b6e
...
...
@@ -1077,6 +1077,7 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
QMenu
*
sysMenu
=
mi
->
getSysTrayMenu
();
sysMenu
->
clear
();
#ifndef Q_WS_MAC
/* Hide / Show VLC and cone */
if
(
mi
->
isVisible
()
||
b_force_visible
)
{
...
...
@@ -1090,8 +1091,9 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
qtr
(
"Show VLC media player"
),
mi
,
SLOT
(
toggleUpdateSystrayMenu
()
)
);
}
sysMenu
->
addSeparator
();
#endif
PopupPlayEntries
(
sysMenu
,
p_intf
,
p_input
);
PopupMenuPlaylistControlEntries
(
sysMenu
,
p_intf
);
PopupMenuControlEntries
(
sysMenu
,
p_intf
);
...
...
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