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
d0b795a5
Commit
d0b795a5
authored
May 27, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/*: fixed context menu problem on win32.
parent
48b74806
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
17 deletions
+10
-17
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+5
-7
modules/gui/wxwindows/timer.cpp
modules/gui/wxwindows/timer.cpp
+2
-6
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+3
-4
No files found.
modules/gui/wxwindows/interface.cpp
View file @
d0b795a5
...
...
@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: interface.cpp,v 1.3
5 2003/05/26 19:06:47
gbazin Exp $
* $Id: interface.cpp,v 1.3
6 2003/05/27 11:35:34
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -139,10 +139,9 @@ BEGIN_EVENT_TABLE(Interface, wxFrame)
EVT_MENU_OPEN
(
Interface
::
OnMenuOpen
)
#if defined( __WXMSW__ ) || defined( __WXMAC__ )
EVT_CONTEXT_MENU
(
Interface
::
OnContextMenu
)
#else
EVT_RIGHT_UP
(
Interface
::
OnContextMenu
)
EVT_CONTEXT_MENU
(
Interface
::
OnContextMenu2
)
#endif
EVT_RIGHT_UP
(
Interface
::
OnContextMenu
)
/* Toolbar events */
EVT_MENU
(
OpenFile_Event
,
Interface
::
OnOpenFile
)
...
...
@@ -539,16 +538,15 @@ void Interface::OnMenuOpen(wxMenuEvent& event)
}
#if defined( __WXMSW__ ) || defined( __WXMAC__ )
void
Interface
::
OnContextMenu
(
wxContextMenuEvent
&
event
)
void
Interface
::
OnContextMenu
2
(
wxContextMenuEvent
&
event
)
{
::
PopupMenu
(
p_intf
,
this
,
ScreenToClient
(
event
.
GetPosition
())
);
}
#e
lse
#e
ndif
void
Interface
::
OnContextMenu
(
wxMouseEvent
&
event
)
{
::
PopupMenu
(
p_intf
,
this
,
event
.
GetPosition
()
);
}
#endif
void
Interface
::
OnExit
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
{
...
...
modules/gui/wxwindows/timer.cpp
View file @
d0b795a5
...
...
@@ -2,7 +2,7 @@
* timer.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: timer.cpp,v 1.
19 2003/05/26 19:06:47
gbazin Exp $
* $Id: timer.cpp,v 1.
20 2003/05/27 11:35:34
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -123,14 +123,10 @@ void Timer::Notify()
{
wxPoint
mousepos
=
wxGetMousePosition
();
#if defined( __WXMSW__ ) || defined( __WXMAC__ )
wxContextMenuEvent
event
=
wxContextMenuEvent
(
wxEVT_NULL
,
0
,
mousepos
);
#else
wxMouseEvent
event
=
wxMouseEvent
(
wxEVT_RIGHT_UP
);
event
.
m_x
=
p_main_interface
->
ScreenToClient
(
mousepos
).
x
;
event
.
m_y
=
p_main_interface
->
ScreenToClient
(
mousepos
).
y
;
#endif
p_main_interface
->
AddPendingEvent
(
event
);
p_main_interface
->
b_popup_change
=
VLC_FALSE
;
...
...
modules/gui/wxwindows/wxwindows.h
View file @
d0b795a5
...
...
@@ -2,7 +2,7 @@
* wxwindows.h: private wxWindows interface description
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: wxwindows.h,v 1.3
2 2003/05/26 19:06:47
gbazin Exp $
* $Id: wxwindows.h,v 1.3
3 2003/05/27 11:35:34
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -173,10 +173,9 @@ private:
void
OnMenuOpen
(
wxMenuEvent
&
event
);
#if defined( __WXMSW__ ) || defined( __WXMAC__ )
void
OnContextMenu
(
wxContextMenuEvent
&
event
);
#else
void
OnContextMenu
(
wxMouseEvent
&
event
);
void
OnContextMenu2
(
wxContextMenuEvent
&
event
);
#endif
void
OnContextMenu
(
wxMouseEvent
&
event
);
DECLARE_EVENT_TABLE
();
...
...
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