Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4ed152a7
Commit
4ed152a7
authored
Mar 27, 2007
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4/menu.cpp: * Work around libqt4 opening gconf
* improve readability of macros
parent
90cf6772
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
4 deletions
+43
-4
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+43
-4
No files found.
modules/gui/qt4/menus.cpp
View file @
4ed152a7
/*****************************************************************************
* menus.cpp : Qt menus
*****************************************************************************
* Copyright (C) 2006 the VideoLAN team
* Copyright (C) 2006
-2007
the VideoLAN team
* $Id$
*
* Authors: Clment Stenac <zorglub@videolan.org>
* Authors: Clment Stenac <zorglub@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -27,6 +27,10 @@
#include <QActionGroup>
#include <QSignalMapper>
#ifndef WIN32
# include <signal.h>
#endif
#include <vlc_intf_strings.h>
#include "main_interface.hpp"
...
...
@@ -44,8 +48,30 @@ enum
static
QActionGroup
*
currentGroup
;
// Add static entries to menus
#define DP_SADD( text, help, icon, slot ) { if( strlen(icon) > 0 ) { QAction *action = menu->addAction( text, THEDP, SLOT( slot ) ); action->setIcon(QIcon(icon));} else { menu->addAction( text, THEDP, SLOT( slot ) ); } }
#define MIM_SADD( text, help, icon, slot ) { if( strlen(icon) > 0 ) { QAction *action = menu->addAction( text, THEMIM, SLOT( slot ) ); action->setIcon(QIcon(icon));} else { menu->addAction( text, THEMIM, SLOT( slot ) ); } }
#define DP_SADD( text, help, icon, slot ) \
{ \
if( strlen(icon) > 0 ) \
{ \
QAction *action = menu->addAction( text, THEDP, SLOT( slot ) ); \
action->setIcon(QIcon(icon)); \
} \
else \
{ \
menu->addAction( text, THEDP, SLOT( slot ) ); \
} \
}
#define MIM_SADD( text, help, icon, slot ) \
{ \
if( strlen(icon) > 0 ) \
{ \
QAction *action = menu->addAction( text, THEMIM, SLOT( slot ) ); \
action->setIcon(QIcon(icon)); \
} \
else \
{ \
menu->addAction( text, THEMIM, SLOT( slot ) ); \
} \
}
#define PL_SADD
/*****************************************************************************
...
...
@@ -124,7 +150,20 @@ void QVLCMenu::createMenuBar( MainInterface *mi, intf_thread_t *p_intf,
bool
playlist
,
bool
adv_controls_enabled
,
bool
visual_selector_enabled
)
{
#ifndef WIN32
/* Uglu klugde
* Remove SIGCHLD from the ignored signal the time to initialise
* Qt because it call gconf to get the icon theme */
sigset_t
set
;
sigemptyset
(
&
set
);
sigaddset
(
&
set
,
SIGCHLD
);
pthread_sigmask
(
SIG_UNBLOCK
,
&
set
,
NULL
);
#endif
QMenuBar
*
bar
=
mi
->
menuBar
();
#ifndef WIN32
pthread_sigmask
(
SIG_BLOCK
,
&
set
,
NULL
);
#endif
BAR_ADD
(
FileMenu
(),
qtr
(
"Media"
)
);
if
(
playlist
)
{
...
...
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