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
a34179cc
Commit
a34179cc
authored
Sep 02, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to disable the Qt interface notification popup.
parent
967ecaa2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+9
-5
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-0
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+8
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
a34179cc
...
...
@@ -112,9 +112,10 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
alwaysVideoFlag
=
true
;
/* Set the other interface settings */
playlistEmbeddedFlag
=
settings
->
value
(
"playlist-embedded"
,
true
).
toBool
();
visualSelectorEnabled
=
settings
->
value
(
"visual-selector"
,
false
).
toBool
();
playlistEmbeddedFlag
=
settings
->
value
(
"playlist-embedded"
,
true
).
toBool
();
visualSelectorEnabled
=
settings
->
value
(
"visual-selector"
,
false
).
toBool
();
notificationEnabled
=
config_GetInt
(
p_intf
,
"qt-notification"
)
?
true
:
false
;
/**************************
* UI and Widgets design
**************************/
...
...
@@ -789,8 +790,11 @@ void MainInterface::updateSystrayTooltipName( QString name )
else
{
sysTray
->
setToolTip
(
name
);
sysTray
->
showMessage
(
qtr
(
"VLC media player"
),
name
,
QSystemTrayIcon
::
NoIcon
,
4000
);
if
(
notificationEnabled
)
{
sysTray
->
showMessage
(
qtr
(
"VLC media player"
),
name
,
QSystemTrayIcon
::
NoIcon
,
4000
);
}
}
}
...
...
modules/gui/qt4/main_interface.hpp
View file @
a34179cc
...
...
@@ -105,6 +105,7 @@ private:
bool
videoEmbeddedFlag
;
bool
alwaysVideoFlag
;
bool
visualSelectorEnabled
;
bool
notificationEnabled
;
InputManager
*
main_input_manager
;
input_thread_t
*
p_input
;
///< Main input associated to the playlist
...
...
modules/gui/qt4/qt4.cpp
View file @
a34179cc
...
...
@@ -69,7 +69,12 @@ static void ShowDialog ( intf_thread_t *, int, int, intf_dialog_args_t * );
"controler window title")
#define FILEDIALOG_PATH_TEXT N_("Path to use in file dialog")
#define FILEDIALOG_PATH_LONGTEXT N_("path to use in file dialog")
#define FILEDIALOG_PATH_LONGTEXT N_("Path to use in file dialog")
#define NOTIFICATION_TEXT N_("Show notification popup on track change")
#define NOTIFICATION_LONGTEXT N_( \
"Show a notification popup with the artist and track name when " \
"the current playlist item changes." )
#define ADVANCED_OPTIONS_TEXT N_("Advanced options")
#define ADVANCED_OPTIONS_LONGTEXT N_("Activate by default all the" \
...
...
@@ -108,6 +113,8 @@ vlc_module_begin();
FILEDIALOG_PATH_LONGTEXT
,
VLC_TRUE
);
change_autosave
();
change_internal
();
add_bool
(
"qt-notification"
,
VLC_TRUE
,
NULL
,
NOTIFICATION_TEXT
,
NOTIFICATION_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"qt-adv-options"
,
VLC_FALSE
,
NULL
,
ADVANCED_OPTIONS_TEXT
,
ADVANCED_OPTIONS_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"qt-pl-showflags"
,
...
...
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