Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
4758ccba
Commit
4758ccba
authored
Sep 27, 2004
by
gbazin
Browse files
* modules/gui/wxwindows/*: work-around a wxwindows bug with accelerators registration on win32.
parent
e9a6f99b
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/gui/wxwindows/interface.cpp
View file @
4758ccba
...
...
@@ -279,6 +279,12 @@ Interface::~Interface()
delete
timer
;
}
void
Interface
::
Init
()
{
/* Misc init */
SetupHotkeys
();
}
void
Interface
::
Update
()
{
/* Misc updates */
...
...
modules/gui/wxwindows/timer.cpp
View file @
4758ccba
...
...
@@ -49,6 +49,7 @@ Timer::Timer( intf_thread_t *_p_intf, Interface *_p_main_interface )
{
p_intf
=
_p_intf
;
p_main_interface
=
_p_main_interface
;
b_init
=
0
;
i_old_playing_status
=
PAUSE_S
;
i_old_rate
=
INPUT_RATE_DEFAULT
;
...
...
@@ -90,6 +91,14 @@ Timer::~Timer()
*****************************************************************************/
void
Timer
::
Notify
()
{
#if defined( __WXMSW__ )
/* Work-around a bug with accelerators */
if
(
!
b_init
)
{
p_main_interface
->
Init
();
b_init
=
VLC_TRUE
;
}
#endif
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
/* Update the input */
...
...
modules/gui/wxwindows/wxwindows.h
View file @
4758ccba
...
...
@@ -181,6 +181,7 @@ public:
private:
intf_thread_t
*
p_intf
;
Interface
*
p_main_interface
;
vlc_bool_t
b_init
;
int
i_old_playing_status
;
int
i_old_rate
;
vlc_bool_t
b_old_seekable
;
...
...
@@ -291,6 +292,7 @@ public:
/* Constructor */
Interface
(
intf_thread_t
*
p_intf
);
virtual
~
Interface
();
void
Init
();
void
TogglePlayButton
(
int
i_playing_status
);
void
Update
();
...
...
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