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
1600a925
Commit
1600a925
authored
Aug 31, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes commit [21610]
parent
c0fa5361
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+15
-7
No files found.
modules/gui/qt4/qt4.cpp
View file @
1600a925
...
...
@@ -23,6 +23,7 @@
#ifndef WIN32
# include <signal.h>
# include <QStyle>
#endif
#include <QApplication>
...
...
@@ -197,20 +198,27 @@ static void Init( intf_thread_t *p_intf )
char
*
argv
[]
=
{
dummy
};
int
argc
=
1
;
Q_INIT_RESOURCE
(
vlc
);
QApplication
*
app
=
new
QApplication
(
argc
,
argv
,
true
);
app
->
setWindowIcon
(
QIcon
(
QPixmap
(
vlc_xpm
)
)
);
p_intf
->
p_sys
->
p_app
=
app
;
#ifndef WIN32
/* unblocks SIGCHLD as that makes the app hang when cleanlooks style is used
* ( when launching gconftool-2 to get the icon theme ) */
/* Ugly klugde
* Remove SIGCHLD from the ignored signal the time to initialise
* Qt because it executes gconftool-2 to get the icon theme when using
* cleanlooks theme. */
sigset_t
set
;
sigemptyset
(
&
set
);
sigaddset
(
&
set
,
SIGCHLD
);
pthread_sigmask
(
SIG_UNBLOCK
,
&
set
,
NULL
);
#endif
Q_INIT_RESOURCE
(
vlc
);
QApplication
*
app
=
new
QApplication
(
argc
,
argv
,
true
);
app
->
setWindowIcon
(
QIcon
(
QPixmap
(
vlc_xpm
)
)
);
p_intf
->
p_sys
->
p_app
=
app
;
/* that forces the execution of QCleanlooksStylePrivate::lookupIconTheme() */
app
->
style
()
->
standardIcon
(
QStyle
::
SP_TitleBarMenuButton
);
pthread_sigmask
(
SIG_BLOCK
,
&
set
,
NULL
);
#endif
// Initialize timers
DialogsProvider
::
getInstance
(
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