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
ded94d78
Commit
ded94d78
authored
Oct 31, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/preferences_widgets.cpp/h: work around a wxSpinCtrl recursion bug in wxGTK.
parent
2da750df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
modules/gui/wxwindows/preferences_widgets.cpp
modules/gui/wxwindows/preferences_widgets.cpp
+10
-1
modules/gui/wxwindows/preferences_widgets.h
modules/gui/wxwindows/preferences_widgets.h
+3
-0
No files found.
modules/gui/wxwindows/preferences_widgets.cpp
View file @
ded94d78
...
...
@@ -533,6 +533,7 @@ IntegerConfigControl::IntegerConfigControl( vlc_object_t *p_this,
sizer
->
Add
(
spin
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
sizer
->
Layout
();
this
->
SetSizerAndFit
(
sizer
);
i_value
=
p_item
->
i_value
;
}
IntegerConfigControl
::~
IntegerConfigControl
()
...
...
@@ -542,7 +543,15 @@ IntegerConfigControl::~IntegerConfigControl()
int
IntegerConfigControl
::
GetIntValue
()
{
return
spin
->
GetValue
();
/* We avoid using GetValue because of a recursion bug with wxSpinCtrl with
* wxGTK. */
return
i_value
;
//spin->GetValue();
}
void
IntegerConfigControl
::
OnUpdate
(
wxCommandEvent
&
event
)
{
i_value
=
event
.
GetInt
();
ConfigControl
::
OnUpdate
(
event
);
}
/*****************************************************************************
...
...
modules/gui/wxwindows/preferences_widgets.h
View file @
ded94d78
...
...
@@ -133,6 +133,9 @@ public:
virtual
int
GetIntValue
();
private:
wxSpinCtrl
*
spin
;
int
i_value
;
void
OnUpdate
(
wxCommandEvent
&
);
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