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
9ef38092
Commit
9ef38092
authored
Oct 14, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: don't trust toggle for systray, do what we say (fix #4248)
If the menu item says hide, really always hide.
parent
4a2819e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+17
-0
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+2
-0
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+2
-2
No files found.
modules/gui/qt4/main_interface.cpp
View file @
9ef38092
...
...
@@ -989,6 +989,23 @@ void MainInterface::toggleUpdateSystrayMenu()
QVLCMenu
::
updateSystrayMenu
(
this
,
p_intf
);
}
void
MainInterface
::
showUpdateSystrayMenu
()
{
if
(
isHidden
()
)
show
();
if
(
isMinimized
()
)
showNormal
();
activateWindow
();
QVLCMenu
::
updateSystrayMenu
(
this
,
p_intf
);
}
void
MainInterface
::
hideUpdateSystrayMenu
()
{
hide
();
QVLCMenu
::
updateSystrayMenu
(
this
,
p_intf
);
}
void
MainInterface
::
handleSystrayClick
(
QSystemTrayIcon
::
ActivationReason
reason
)
{
...
...
modules/gui/qt4/main_interface.hpp
View file @
9ef38092
...
...
@@ -182,6 +182,8 @@ public slots:
void
togglePlaylist
();
#ifndef HAVE_MAEMO
void
toggleUpdateSystrayMenu
();
void
showUpdateSystrayMenu
();
void
hideUpdateSystrayMenu
();
#endif
void
toggleAdvancedButtons
();
void
toggleInterfaceFullScreen
();
...
...
modules/gui/qt4/menus.cpp
View file @
9ef38092
...
...
@@ -1086,13 +1086,13 @@ void QVLCMenu::updateSystrayMenu( MainInterface *mi,
{
sysMenu
->
addAction
(
QIcon
(
":/logo/vlc16.png"
),
qtr
(
"Hide VLC media player in taskbar"
),
mi
,
SLOT
(
toggl
eUpdateSystrayMenu
()
)
);
SLOT
(
hid
eUpdateSystrayMenu
()
)
);
}
else
{
sysMenu
->
addAction
(
QIcon
(
":/logo/vlc16.png"
),
qtr
(
"Show VLC media player"
),
mi
,
SLOT
(
toggle
UpdateSystrayMenu
()
)
);
SLOT
(
show
UpdateSystrayMenu
()
)
);
}
sysMenu
->
addSeparator
();
#endif
...
...
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