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
3a8f5790
Commit
3a8f5790
authored
Apr 08, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mozilla/vlcshell.cpp: added fullscreen=yes/no option
* modules/gui/wxwindows/*: fixed auto-generated menus on win32.
parent
fb7ad320
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
18 deletions
+25
-18
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+8
-8
modules/gui/wxwindows/menus.cpp
modules/gui/wxwindows/menus.cpp
+8
-9
mozilla/vlcshell.cpp
mozilla/vlcshell.cpp
+9
-1
No files found.
modules/gui/wxwindows/interface.cpp
View file @
3a8f5790
...
@@ -744,9 +744,11 @@ void Interface::UpdateAcceleratorTable()
...
@@ -744,9 +744,11 @@ void Interface::UpdateAcceleratorTable()
void
Interface
::
OnMenuOpen
(
wxMenuEvent
&
event
)
void
Interface
::
OnMenuOpen
(
wxMenuEvent
&
event
)
{
{
#if
!
defined( __WXMSW__ )
#if defined( __WXMSW__ )
if
(
event
.
GetEventObject
()
==
p_settings_menu
)
# define GetEventObject GetMenu
#endif
#endif
if
(
event
.
GetEventObject
()
==
p_settings_menu
)
{
{
p_settings_menu
=
SettingsMenu
(
p_intf
,
this
,
p_settings_menu
);
p_settings_menu
=
SettingsMenu
(
p_intf
,
this
,
p_settings_menu
);
...
@@ -759,26 +761,24 @@ void Interface::OnMenuOpen(wxMenuEvent& event)
...
@@ -759,26 +761,24 @@ void Interface::OnMenuOpen(wxMenuEvent& event)
wxU
(
_
(
HELP_PREFS
))
);
wxU
(
_
(
HELP_PREFS
))
);
}
}
#if !defined( __WXMSW__ )
else
if
(
event
.
GetEventObject
()
==
p_audio_menu
)
else
if
(
event
.
GetEventObject
()
==
p_audio_menu
)
#endif
{
{
p_audio_menu
=
AudioMenu
(
p_intf
,
this
,
p_audio_menu
);
p_audio_menu
=
AudioMenu
(
p_intf
,
this
,
p_audio_menu
);
}
}
#if !defined( __WXMSW__ )
else
if
(
event
.
GetEventObject
()
==
p_video_menu
)
else
if
(
event
.
GetEventObject
()
==
p_video_menu
)
#endif
{
{
p_video_menu
=
VideoMenu
(
p_intf
,
this
,
p_video_menu
);
p_video_menu
=
VideoMenu
(
p_intf
,
this
,
p_video_menu
);
}
}
#if !defined( __WXMSW__ )
else
if
(
event
.
GetEventObject
()
==
p_navig_menu
)
else
if
(
event
.
GetEventObject
()
==
p_navig_menu
)
#endif
{
{
p_navig_menu
=
NavigMenu
(
p_intf
,
this
,
p_navig_menu
);
p_navig_menu
=
NavigMenu
(
p_intf
,
this
,
p_navig_menu
);
}
}
#if defined( __WXMSW__ )
# undef GetEventObject
#endif
}
}
#if defined( __WXMSW__ ) || defined( __WXMAC__ )
#if defined( __WXMSW__ ) || defined( __WXMAC__ )
...
...
modules/gui/wxwindows/menus.cpp
View file @
3a8f5790
...
@@ -58,7 +58,7 @@ class Menu: public wxMenu
...
@@ -58,7 +58,7 @@ class Menu: public wxMenu
{
{
public:
public:
/* Constructor */
/* Constructor */
Menu
(
intf_thread_t
*
p_intf
,
wxWindow
*
p_parent
,
int
i_start_id
);
Menu
(
intf_thread_t
*
p_intf
,
int
i_start_id
);
virtual
~
Menu
();
virtual
~
Menu
();
void
Populate
(
int
i_count
,
char
**
ppsz_names
,
int
*
pi_objects
);
void
Populate
(
int
i_count
,
char
**
ppsz_names
,
int
*
pi_objects
);
...
@@ -242,7 +242,7 @@ void PopupMenu( intf_thread_t *p_intf, wxWindow *p_parent,
...
@@ -242,7 +242,7 @@ void PopupMenu( intf_thread_t *p_intf, wxWindow *p_parent,
}
}
/* Build menu */
/* Build menu */
Menu
popupmenu
(
p_intf
,
p_parent
,
PopupMenu_Events
);
Menu
popupmenu
(
p_intf
,
PopupMenu_Events
);
popupmenu
.
Populate
(
i
,
ppsz_varnames
,
pi_objects
);
popupmenu
.
Populate
(
i
,
ppsz_varnames
,
pi_objects
);
#if 1
#if 1
...
@@ -294,7 +294,7 @@ wxMenu *AudioMenu( intf_thread_t *_p_intf, wxWindow *p_parent, wxMenu *p_menu )
...
@@ -294,7 +294,7 @@ wxMenu *AudioMenu( intf_thread_t *_p_intf, wxWindow *p_parent, wxMenu *p_menu )
/* Build menu */
/* Build menu */
Menu
*
p_vlc_menu
=
(
Menu
*
)
p_menu
;
Menu
*
p_vlc_menu
=
(
Menu
*
)
p_menu
;
if
(
!
p_vlc_menu
)
if
(
!
p_vlc_menu
)
p_vlc_menu
=
new
Menu
(
_p_intf
,
p_parent
,
AudioMenu_Events
);
p_vlc_menu
=
new
Menu
(
_p_intf
,
AudioMenu_Events
);
else
else
p_vlc_menu
->
Clear
();
p_vlc_menu
->
Clear
();
...
@@ -365,7 +365,7 @@ wxMenu *VideoMenu( intf_thread_t *_p_intf, wxWindow *p_parent, wxMenu *p_menu )
...
@@ -365,7 +365,7 @@ wxMenu *VideoMenu( intf_thread_t *_p_intf, wxWindow *p_parent, wxMenu *p_menu )
/* Build menu */
/* Build menu */
Menu
*
p_vlc_menu
=
(
Menu
*
)
p_menu
;
Menu
*
p_vlc_menu
=
(
Menu
*
)
p_menu
;
if
(
!
p_vlc_menu
)
if
(
!
p_vlc_menu
)
p_vlc_menu
=
new
Menu
(
_p_intf
,
p_parent
,
VideoMenu_Events
);
p_vlc_menu
=
new
Menu
(
_p_intf
,
VideoMenu_Events
);
else
else
p_vlc_menu
->
Clear
();
p_vlc_menu
->
Clear
();
...
@@ -418,7 +418,7 @@ wxMenu *NavigMenu( intf_thread_t *_p_intf, wxWindow *p_parent, wxMenu *p_menu )
...
@@ -418,7 +418,7 @@ wxMenu *NavigMenu( intf_thread_t *_p_intf, wxWindow *p_parent, wxMenu *p_menu )
/* Build menu */
/* Build menu */
Menu
*
p_vlc_menu
=
(
Menu
*
)
p_menu
;
Menu
*
p_vlc_menu
=
(
Menu
*
)
p_menu
;
if
(
!
p_vlc_menu
)
if
(
!
p_vlc_menu
)
p_vlc_menu
=
new
Menu
(
_p_intf
,
p_parent
,
NavigMenu_Events
);
p_vlc_menu
=
new
Menu
(
_p_intf
,
NavigMenu_Events
);
else
else
p_vlc_menu
->
Clear
();
p_vlc_menu
->
Clear
();
...
@@ -454,7 +454,7 @@ wxMenu *SettingsMenu( intf_thread_t *_p_intf, wxWindow *p_parent,
...
@@ -454,7 +454,7 @@ wxMenu *SettingsMenu( intf_thread_t *_p_intf, wxWindow *p_parent,
/* Build menu */
/* Build menu */
Menu
*
p_vlc_menu
=
(
Menu
*
)
p_menu
;
Menu
*
p_vlc_menu
=
(
Menu
*
)
p_menu
;
if
(
!
p_vlc_menu
)
if
(
!
p_vlc_menu
)
p_vlc_menu
=
new
Menu
(
_p_intf
,
p_parent
,
SettingsMenu_Events
);
p_vlc_menu
=
new
Menu
(
_p_intf
,
SettingsMenu_Events
);
else
else
p_vlc_menu
->
Clear
();
p_vlc_menu
->
Clear
();
...
@@ -466,8 +466,7 @@ wxMenu *SettingsMenu( intf_thread_t *_p_intf, wxWindow *p_parent,
...
@@ -466,8 +466,7 @@ wxMenu *SettingsMenu( intf_thread_t *_p_intf, wxWindow *p_parent,
/*****************************************************************************
/*****************************************************************************
* Constructor.
* Constructor.
*****************************************************************************/
*****************************************************************************/
Menu
::
Menu
(
intf_thread_t
*
_p_intf
,
wxWindow
*
p_parent
,
int
_i_start_id
)
Menu
::
Menu
(
intf_thread_t
*
_p_intf
,
int
_i_start_id
)
:
wxMenu
(
)
:
wxMenu
(
)
{
{
/* Initializations */
/* Initializations */
p_intf
=
_p_intf
;
p_intf
=
_p_intf
;
...
@@ -542,7 +541,7 @@ static void RecursiveDestroy( wxMenu *menu )
...
@@ -542,7 +541,7 @@ static void RecursiveDestroy( wxMenu *menu )
{
{
RecursiveDestroy
(
submenu
);
RecursiveDestroy
(
submenu
);
}
}
menu
->
De
lete
(
item
);
menu
->
De
stroy
(
item
);
}
}
}
}
...
...
mozilla/vlcshell.cpp
View file @
3a8f5790
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vlcshell.cpp: a VLC plugin for Mozilla
* vlcshell.cpp: a VLC plugin for Mozilla
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id
: vlcshell.cpp,v 1.29 2004/01/25 17:52:17 gbazin Exp
$
* $Id$
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -395,6 +395,14 @@ NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
...
@@ -395,6 +395,14 @@ NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
VLC_Set
(
p_plugin
->
i_vlc
,
"conf::loop"
,
value
);
VLC_Set
(
p_plugin
->
i_vlc
,
"conf::loop"
,
value
);
}
}
}
}
else
if
(
!
strcmp
(
argn
[
i
],
"fullscreen"
)
)
{
if
(
!
strcmp
(
argv
[
i
],
"yes"
)
)
{
value
.
b_bool
=
VLC_TRUE
;
VLC_Set
(
p_plugin
->
i_vlc
,
"conf::fullscreen"
,
value
);
}
}
#endif
#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