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
bea07118
Commit
bea07118
authored
Nov 23, 2006
by
Marian Durkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Completely replace all ANSI CP dependend mb_str()
with mb_str(wxConvUTF8)
parent
d8674c50
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
36 additions
and
36 deletions
+36
-36
modules/gui/wxwidgets/dialogs.cpp
modules/gui/wxwidgets/dialogs.cpp
+1
-1
modules/gui/wxwidgets/dialogs/bookmarks.cpp
modules/gui/wxwidgets/dialogs/bookmarks.cpp
+3
-3
modules/gui/wxwidgets/dialogs/infopanels.cpp
modules/gui/wxwidgets/dialogs/infopanels.cpp
+2
-2
modules/gui/wxwidgets/dialogs/interaction.cpp
modules/gui/wxwidgets/dialogs/interaction.cpp
+1
-1
modules/gui/wxwidgets/dialogs/open.cpp
modules/gui/wxwidgets/dialogs/open.cpp
+2
-2
modules/gui/wxwidgets/dialogs/playlist.cpp
modules/gui/wxwidgets/dialogs/playlist.cpp
+3
-3
modules/gui/wxwidgets/dialogs/preferences.cpp
modules/gui/wxwidgets/dialogs/preferences.cpp
+5
-5
modules/gui/wxwidgets/dialogs/preferences_widgets.cpp
modules/gui/wxwidgets/dialogs/preferences_widgets.cpp
+5
-5
modules/gui/wxwidgets/dialogs/updatevlc.cpp
modules/gui/wxwidgets/dialogs/updatevlc.cpp
+1
-1
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.cpp
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.cpp
+2
-2
modules/gui/wxwidgets/dialogs/wizard.cpp
modules/gui/wxwidgets/dialogs/wizard.cpp
+9
-9
modules/gui/wxwidgets/extrapanel.cpp
modules/gui/wxwidgets/extrapanel.cpp
+1
-1
modules/gui/wxwidgets/wxwidgets.cpp
modules/gui/wxwidgets/wxwidgets.cpp
+1
-1
No files found.
modules/gui/wxwidgets/dialogs.cpp
View file @
bea07118
...
@@ -396,7 +396,7 @@ void DialogsProvider::OnOpenFileGeneric( wxCommandEvent& event )
...
@@ -396,7 +396,7 @@ void DialogsProvider::OnOpenFileGeneric( wxCommandEvent& event )
sizeof
(
char
*
)
);
sizeof
(
char
*
)
);
for
(
size_t
i
=
0
;
i
<
paths
.
GetCount
();
i
++
)
for
(
size_t
i
=
0
;
i
<
paths
.
GetCount
();
i
++
)
{
{
p_arg
->
psz_results
[
i
]
=
strdup
(
paths
[
i
].
mb_str
()
);
p_arg
->
psz_results
[
i
]
=
strdup
(
paths
[
i
].
mb_str
(
wxConvUTF8
)
);
}
}
}
}
...
...
modules/gui/wxwidgets/dialogs/bookmarks.cpp
View file @
bea07118
...
@@ -119,10 +119,10 @@ BookmarkEditDialog::~BookmarkEditDialog()
...
@@ -119,10 +119,10 @@ BookmarkEditDialog::~BookmarkEditDialog()
void
BookmarkEditDialog
::
OnOK
(
wxCommandEvent
&
event
)
void
BookmarkEditDialog
::
OnOK
(
wxCommandEvent
&
event
)
{
{
if
(
p_seekpoint
->
psz_name
)
free
(
p_seekpoint
->
psz_name
);
if
(
p_seekpoint
->
psz_name
)
free
(
p_seekpoint
->
psz_name
);
p_seekpoint
->
psz_name
=
strdup
(
name_text
->
GetValue
().
mb_str
()
);
p_seekpoint
->
psz_name
=
strdup
(
name_text
->
GetValue
().
mb_str
(
wxConvUTF8
)
);
p_seekpoint
->
i_byte_offset
=
atoi
(
bytes_text
->
GetValue
().
mb_str
()
);
p_seekpoint
->
i_byte_offset
=
atoi
(
bytes_text
->
GetValue
().
mb_str
(
wxConvUTF8
)
);
p_seekpoint
->
i_time_offset
=
1000000
*
p_seekpoint
->
i_time_offset
=
1000000
*
atoll
(
time_text
->
GetValue
().
mb_str
()
)
;
atoll
(
time_text
->
GetValue
().
mb_str
(
wxConvUTF8
)
)
;
EndModal
(
wxID_OK
);
EndModal
(
wxID_OK
);
}
}
...
...
modules/gui/wxwidgets/dialogs/infopanels.cpp
View file @
bea07118
...
@@ -147,12 +147,12 @@ void MetaDataPanel::Update( input_item_t *p_item )
...
@@ -147,12 +147,12 @@ void MetaDataPanel::Update( input_item_t *p_item )
char
*
MetaDataPanel
::
GetURI
(
)
char
*
MetaDataPanel
::
GetURI
(
)
{
{
return
strdup
(
uri_text
->
GetLineText
(
0
).
mb_str
()
);
return
strdup
(
uri_text
->
GetLineText
(
0
).
mb_str
(
wxConvUTF8
)
);
}
}
char
*
MetaDataPanel
::
GetName
(
)
char
*
MetaDataPanel
::
GetName
(
)
{
{
return
strdup
(
name_text
->
GetLineText
(
0
).
mb_str
()
);
return
strdup
(
name_text
->
GetLineText
(
0
).
mb_str
(
wxConvUTF8
)
);
}
}
void
MetaDataPanel
::
Clear
()
void
MetaDataPanel
::
Clear
()
...
...
modules/gui/wxwidgets/dialogs/interaction.cpp
View file @
bea07118
...
@@ -261,7 +261,7 @@ void InteractionDialog::Finish( int i_ret )
...
@@ -261,7 +261,7 @@ void InteractionDialog::Finish( int i_ret )
while
(
it
<
input_widgets
.
end
()
)
while
(
it
<
input_widgets
.
end
()
)
{
{
if
(
(
*
it
).
i_type
==
WIDGET_INPUT_TEXT
)
if
(
(
*
it
).
i_type
==
WIDGET_INPUT_TEXT
)
(
*
it
).
val
->
psz_string
=
strdup
(
(
*
it
).
control
->
GetValue
().
mb_str
());
(
*
it
).
val
->
psz_string
=
strdup
(
(
*
it
).
control
->
GetValue
().
mb_str
(
wxConvUTF8
));
it
++
;
it
++
;
}
}
Hide
();
Hide
();
...
...
modules/gui/wxwidgets/dialogs/open.cpp
View file @
bea07118
...
@@ -1129,7 +1129,7 @@ void OpenDialog::UpdateMRL( int i_access_method )
...
@@ -1129,7 +1129,7 @@ void OpenDialog::UpdateMRL( int i_access_method )
}
}
else
else
{
{
int
i_value
=
config_GetInt
(
p_intf
,
caching_name
.
mb_str
()
);
int
i_value
=
config_GetInt
(
p_intf
,
caching_name
.
mb_str
(
wxConvUTF8
)
);
caching_value
->
SetValue
(
i_value
);
caching_value
->
SetValue
(
i_value
);
}
}
}
}
...
@@ -1172,7 +1172,7 @@ void OpenDialog::OnOk( wxCommandEvent& WXUNUSED(event) )
...
@@ -1172,7 +1172,7 @@ void OpenDialog::OnOk( wxCommandEvent& WXUNUSED(event) )
/* Insert options */
/* Insert options */
while
(
i
+
1
<
(
int
)
mrl
.
GetCount
()
&&
while
(
i
+
1
<
(
int
)
mrl
.
GetCount
()
&&
((
const
char
*
)
mrl
[
i
+
1
].
mb_str
())[
0
]
==
':'
)
((
const
char
*
)
mrl
[
i
+
1
].
mb_str
(
wxConvUTF8
))[
0
]
==
':'
)
{
{
psz_utf8
=
wxFromLocale
(
mrl
[
i
+
1
]
);
psz_utf8
=
wxFromLocale
(
mrl
[
i
+
1
]
);
input_ItemAddOption
(
p_input
,
psz_utf8
);
input_ItemAddOption
(
p_input
,
psz_utf8
);
...
...
modules/gui/wxwidgets/dialogs/playlist.cpp
View file @
bea07118
...
@@ -957,12 +957,12 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
...
@@ -957,12 +957,12 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
if
(
dialog
.
ShowModal
()
==
wxID_OK
)
if
(
dialog
.
ShowModal
()
==
wxID_OK
)
{
{
if
(
dialog
.
GetPath
().
mb_str
()
)
if
(
dialog
.
GetPath
().
mb_str
(
wxConvUTF8
)
)
{
{
/* what root should we export? */
/* what root should we export? */
if
(
p_playlist
->
p_root_category
->
i_children
>
0
)
if
(
p_playlist
->
p_root_category
->
i_children
>
0
)
{
{
playlist_Export
(
p_playlist
,
dialog
.
GetPath
().
mb_str
(),
playlist_Export
(
p_playlist
,
dialog
.
GetPath
().
mb_str
(
wxConvUTF8
),
p_playlist
->
p_root_category
->
pp_children
[
0
],
p_playlist
->
p_root_category
->
pp_children
[
0
],
formats
[
dialog
.
GetFilterIndex
()].
psz_module
);
formats
[
dialog
.
GetFilterIndex
()].
psz_module
);
}
}
...
@@ -978,7 +978,7 @@ void Playlist::OnOpen( wxCommandEvent& WXUNUSED(event) )
...
@@ -978,7 +978,7 @@ void Playlist::OnOpen( wxCommandEvent& WXUNUSED(event) )
if
(
dialog
.
ShowModal
()
==
wxID_OK
)
if
(
dialog
.
ShowModal
()
==
wxID_OK
)
{
{
playlist_Import
(
p_playlist
,
dialog
.
GetPath
().
mb_str
()
);
playlist_Import
(
p_playlist
,
dialog
.
GetPath
().
mb_str
(
wxConvUTF8
)
);
}
}
}
}
...
...
modules/gui/wxwidgets/dialogs/preferences.cpp
View file @
bea07118
...
@@ -1074,20 +1074,20 @@ void PrefsPanel::ApplyChanges()
...
@@ -1074,20 +1074,20 @@ void PrefsPanel::ApplyChanges()
case
CONFIG_ITEM_MODULE_CAT
:
case
CONFIG_ITEM_MODULE_CAT
:
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST_CAT
:
case
CONFIG_ITEM_MODULE_LIST_CAT
:
config_PutPsz
(
p_intf
,
control
->
GetName
().
mb_str
(),
config_PutPsz
(
p_intf
,
control
->
GetName
().
mb_str
(
wxConvUTF8
),
control
->
GetPszValue
().
mb_str
()
);
control
->
GetPszValue
().
mb_str
(
wxConvUTF8
)
);
break
;
break
;
case
CONFIG_ITEM_KEY
:
case
CONFIG_ITEM_KEY
:
/* So you don't need to restart to have the changes take effect */
/* So you don't need to restart to have the changes take effect */
val
.
i_int
=
control
->
GetIntValue
();
val
.
i_int
=
control
->
GetIntValue
();
var_Set
(
p_intf
->
p_libvlc
,
control
->
GetName
().
mb_str
(),
val
);
var_Set
(
p_intf
->
p_libvlc
,
control
->
GetName
().
mb_str
(
wxConvUTF8
),
val
);
case
CONFIG_ITEM_INTEGER
:
case
CONFIG_ITEM_INTEGER
:
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
config_PutInt
(
p_intf
,
control
->
GetName
().
mb_str
(),
config_PutInt
(
p_intf
,
control
->
GetName
().
mb_str
(
wxConvUTF8
),
control
->
GetIntValue
()
);
control
->
GetIntValue
()
);
break
;
break
;
case
CONFIG_ITEM_FLOAT
:
case
CONFIG_ITEM_FLOAT
:
config_PutFloat
(
p_intf
,
control
->
GetName
().
mb_str
(),
config_PutFloat
(
p_intf
,
control
->
GetName
().
mb_str
(
wxConvUTF8
),
control
->
GetFloatValue
()
);
control
->
GetFloatValue
()
);
break
;
break
;
}
}
...
...
modules/gui/wxwidgets/dialogs/preferences_widgets.cpp
View file @
bea07118
...
@@ -637,15 +637,15 @@ void StringListConfigControl::OnAction( wxCommandEvent& event )
...
@@ -637,15 +637,15 @@ void StringListConfigControl::OnAction( wxCommandEvent& event )
{
{
int
i_action
=
event
.
GetId
()
-
wxID_HIGHEST
;
int
i_action
=
event
.
GetId
()
-
wxID_HIGHEST
;
module_config_t
*
p_item
=
config_FindConfig
(
p_this
,
GetName
().
mb_str
()
);
module_config_t
*
p_item
=
config_FindConfig
(
p_this
,
GetName
().
mb_str
(
wxConvUTF8
)
);
if
(
!
p_item
)
return
;
if
(
!
p_item
)
return
;
if
(
i_action
<
0
||
i_action
>=
p_item
->
i_action
)
return
;
if
(
i_action
<
0
||
i_action
>=
p_item
->
i_action
)
return
;
vlc_value_t
val
;
vlc_value_t
val
;
wxString
value
=
GetPszValue
();
wxString
value
=
GetPszValue
();
*
((
const
char
**
)
&
val
.
psz_string
)
=
value
.
mb_str
();
*
((
const
char
**
)
&
val
.
psz_string
)
=
value
.
mb_str
(
wxConvUTF8
);
p_item
->
ppf_action
[
i_action
](
p_this
,
GetName
().
mb_str
(),
val
,
val
,
0
);
p_item
->
ppf_action
[
i_action
](
p_this
,
GetName
().
mb_str
(
wxConvUTF8
),
val
,
val
,
0
);
if
(
p_item
->
b_dirty
)
if
(
p_item
->
b_dirty
)
{
{
...
@@ -854,14 +854,14 @@ void IntegerListConfigControl::OnAction( wxCommandEvent& event )
...
@@ -854,14 +854,14 @@ void IntegerListConfigControl::OnAction( wxCommandEvent& event )
int
i_action
=
event
.
GetId
()
-
wxID_HIGHEST
;
int
i_action
=
event
.
GetId
()
-
wxID_HIGHEST
;
module_config_t
*
p_item
;
module_config_t
*
p_item
;
p_item
=
config_FindConfig
(
p_this
,
GetName
().
mb_str
()
);
p_item
=
config_FindConfig
(
p_this
,
GetName
().
mb_str
(
wxConvUTF8
)
);
if
(
!
p_item
)
return
;
if
(
!
p_item
)
return
;
if
(
i_action
<
0
||
i_action
>=
p_item
->
i_action
)
return
;
if
(
i_action
<
0
||
i_action
>=
p_item
->
i_action
)
return
;
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_int
=
GetIntValue
();
val
.
i_int
=
GetIntValue
();
p_item
->
ppf_action
[
i_action
](
p_this
,
GetName
().
mb_str
(),
val
,
val
,
0
);
p_item
->
ppf_action
[
i_action
](
p_this
,
GetName
().
mb_str
(
wxConvUTF8
),
val
,
val
,
0
);
if
(
p_item
->
b_dirty
)
if
(
p_item
->
b_dirty
)
{
{
...
...
modules/gui/wxwidgets/dialogs/updatevlc.cpp
View file @
bea07118
...
@@ -200,7 +200,7 @@ void UpdateVLC::OnChooseItem( wxListEvent& event )
...
@@ -200,7 +200,7 @@ void UpdateVLC::OnChooseItem( wxListEvent& event )
wxSAVE
|
wxOVERWRITE_PROMPT
);
wxSAVE
|
wxOVERWRITE_PROMPT
);
if
(
filedialog
->
ShowModal
()
==
wxID_OK
)
if
(
filedialog
->
ShowModal
()
==
wxID_OK
)
{
{
update_download
(
p_uit
,
filedialog
->
GetPath
().
mb_str
()
);
update_download
(
p_uit
,
filedialog
->
GetPath
().
mb_str
(
wxConvUTF8
)
);
}
}
update_iterator_Delete
(
p_uit
);
update_iterator_Delete
(
p_uit
);
delete
filedialog
;
delete
filedialog
;
...
...
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.cpp
View file @
bea07118
...
@@ -217,7 +217,7 @@ void VLMPanel::OnLoad( wxCommandEvent &event )
...
@@ -217,7 +217,7 @@ void VLMPanel::OnLoad( wxCommandEvent &event )
p_file_dialog
->
SetTitle
(
wxU
(
_
(
"Load Configuration"
)
)
);
p_file_dialog
->
SetTitle
(
wxU
(
_
(
"Load Configuration"
)
)
);
if
(
p_file_dialog
->
ShowModal
()
==
wxID_OK
)
if
(
p_file_dialog
->
ShowModal
()
==
wxID_OK
)
{
{
vlm_Load
(
p_vlm
->
GetVLM
(),
p_file_dialog
->
GetPath
().
mb_str
()
);
vlm_Load
(
p_vlm
->
GetVLM
(),
p_file_dialog
->
GetPath
().
mb_str
(
wxConvUTF8
)
);
}
}
Update
();
Update
();
}
}
...
@@ -231,7 +231,7 @@ void VLMPanel::OnSave( wxCommandEvent &event )
...
@@ -231,7 +231,7 @@ void VLMPanel::OnSave( wxCommandEvent &event )
p_file_dialog
->
SetTitle
(
wxU
(
_
(
"Save Configuration"
)
)
);
p_file_dialog
->
SetTitle
(
wxU
(
_
(
"Save Configuration"
)
)
);
if
(
p_file_dialog
->
ShowModal
()
==
wxID_OK
)
if
(
p_file_dialog
->
ShowModal
()
==
wxID_OK
)
{
{
vlm_Save
(
p_vlm
->
GetVLM
(),
p_file_dialog
->
GetPath
().
mb_str
()
);
vlm_Save
(
p_vlm
->
GetVLM
(),
p_file_dialog
->
GetPath
().
mb_str
(
wxConvUTF8
)
);
}
}
}
}
...
...
modules/gui/wxwidgets/dialogs/wizard.cpp
View file @
bea07118
...
@@ -707,7 +707,7 @@ void wizInputPage::OnWizardPageChanging(wxWizardEvent& event)
...
@@ -707,7 +707,7 @@ void wizInputPage::OnWizardPageChanging(wxWizardEvent& event)
}
}
else
else
{
{
p_parent
->
SetMrl
(
(
const
char
*
)
mrl_text
->
GetValue
().
mb_str
()
);
p_parent
->
SetMrl
(
(
const
char
*
)
mrl_text
->
GetValue
().
mb_str
(
wxConvUTF8
)
);
}
}
}
}
else
else
...
@@ -735,8 +735,8 @@ void wizInputPage::OnWizardPageChanging(wxWizardEvent& event)
...
@@ -735,8 +735,8 @@ void wizInputPage::OnWizardPageChanging(wxWizardEvent& event)
}
}
if
(
enable_checkbox
->
IsChecked
()
)
if
(
enable_checkbox
->
IsChecked
()
)
{
{
int
i_from
=
atoi
(
from_text
->
GetValue
().
mb_str
()
);
int
i_from
=
atoi
(
from_text
->
GetValue
().
mb_str
(
wxConvUTF8
)
);
int
i_to
=
atoi
(
to_text
->
GetValue
().
mb_str
()
);
int
i_to
=
atoi
(
to_text
->
GetValue
().
mb_str
(
wxConvUTF8
)
);
p_parent
->
SetPartial
(
i_from
,
i_to
);
p_parent
->
SetPartial
(
i_from
,
i_to
);
}
}
return
;
return
;
...
@@ -980,12 +980,12 @@ void wizTranscodeCodecPage::OnWizardPageChanging(wxWizardEvent& event)
...
@@ -980,12 +980,12 @@ void wizTranscodeCodecPage::OnWizardPageChanging(wxWizardEvent& event)
audio_combo
->
GetSelection
()
:
i_audio_codec
));
audio_combo
->
GetSelection
()
:
i_audio_codec
));
acodec
=
strdup
(
c
->
psz_codec
);
acodec
=
strdup
(
c
->
psz_codec
);
int
vb
=
atoi
(
vb_combo
->
GetValue
().
mb_str
()
);
int
vb
=
atoi
(
vb_combo
->
GetValue
().
mb_str
(
wxConvUTF8
)
);
if
(
vb
==
0
)
if
(
vb
==
0
)
{
{
vb
=
1024
;
vb
=
1024
;
}
}
int
ab
=
atoi
(
ab_combo
->
GetValue
().
mb_str
()
);
int
ab
=
atoi
(
ab_combo
->
GetValue
().
mb_str
(
wxConvUTF8
)
);
if
(
ab
==
0
)
if
(
ab
==
0
)
{
{
ab
=
192
;
ab
=
192
;
...
@@ -1079,7 +1079,7 @@ void wizStreamingMethodPage::OnWizardPageChanging(wxWizardEvent& event)
...
@@ -1079,7 +1079,7 @@ void wizStreamingMethodPage::OnWizardPageChanging(wxWizardEvent& event)
/* Check valid address */
/* Check valid address */
if
(
i_method
==
1
if
(
i_method
==
1
&&
!
net_AddressIsMulticast
(
(
vlc_object_t
*
)
p_intf
,
&&
!
net_AddressIsMulticast
(
(
vlc_object_t
*
)
p_intf
,
address_txtctrl
->
GetValue
().
mb_str
())
)
address_txtctrl
->
GetValue
().
mb_str
(
wxConvUTF8
))
)
{
{
wxMessageBox
(
wxU
(
INVALID_MCAST_ADDRESS
)
,
wxU
(
ERROR_MSG
),
wxMessageBox
(
wxU
(
INVALID_MCAST_ADDRESS
)
,
wxU
(
ERROR_MSG
),
wxICON_WARNING
|
wxOK
,
this
->
p_parent
);
wxICON_WARNING
|
wxOK
,
this
->
p_parent
);
...
@@ -1104,7 +1104,7 @@ void wizStreamingMethodPage::OnWizardPageChanging(wxWizardEvent& event)
...
@@ -1104,7 +1104,7 @@ void wizStreamingMethodPage::OnWizardPageChanging(wxWizardEvent& event)
}
}
}
}
p_parent
->
SetStream
(
methods_array
[
i_method
].
psz_access
,
p_parent
->
SetStream
(
methods_array
[
i_method
].
psz_access
,
address_txtctrl
->
GetValue
().
mb_str
()
);
address_txtctrl
->
GetValue
().
mb_str
(
wxConvUTF8
)
);
/* Set the action for the muxer page */
/* Set the action for the muxer page */
((
wizEncapPage
*
)
GetNext
())
->
SetAction
(
p_parent
->
GetAction
()
);
((
wizEncapPage
*
)
GetNext
())
->
SetAction
(
p_parent
->
GetAction
()
);
...
@@ -1279,7 +1279,7 @@ void wizTranscodeExtraPage::OnSelectFile( wxCommandEvent &event)
...
@@ -1279,7 +1279,7 @@ void wizTranscodeExtraPage::OnSelectFile( wxCommandEvent &event)
if
(
file_dialog
&&
file_dialog
->
ShowModal
()
==
wxID_OK
)
if
(
file_dialog
&&
file_dialog
->
ShowModal
()
==
wxID_OK
)
{
{
if
(
file_dialog
->
GetFilename
().
mb_str
()
)
if
(
file_dialog
->
GetFilename
().
mb_str
(
wxConvUTF8
)
)
{
{
file_text
->
SetValue
(
file_dialog
->
GetPath
()
);
file_text
->
SetValue
(
file_dialog
->
GetPath
()
);
}
}
...
@@ -1363,7 +1363,7 @@ void wizStreamingExtraPage::OnWizardPageChanging(wxWizardEvent& event)
...
@@ -1363,7 +1363,7 @@ void wizStreamingExtraPage::OnWizardPageChanging(wxWizardEvent& event)
else
else
{
{
p_parent
->
SetSAP
(
true
,
p_parent
->
SetSAP
(
true
,
(
const
char
*
)
sap_text
->
GetValue
().
mb_str
()
);
(
const
char
*
)
sap_text
->
GetValue
().
mb_str
(
wxConvUTF8
)
);
}
}
}
}
else
else
...
...
modules/gui/wxwidgets/extrapanel.cpp
View file @
bea07118
...
@@ -981,7 +981,7 @@ void ExtraPanel::OnAdjustUpdate( wxScrollEvent &event)
...
@@ -981,7 +981,7 @@ void ExtraPanel::OnAdjustUpdate( wxScrollEvent &event)
/* FIXME */
/* FIXME */
void
ExtraPanel
::
OnRatio
(
wxCommandEvent
&
event
)
void
ExtraPanel
::
OnRatio
(
wxCommandEvent
&
event
)
{
{
config_PutPsz
(
p_intf
,
"aspect-ratio"
,
ratio_combo
->
GetValue
().
mb_str
()
);
config_PutPsz
(
p_intf
,
"aspect-ratio"
,
ratio_combo
->
GetValue
().
mb_str
(
wxConvUTF8
)
);
}
}
...
...
modules/gui/wxwidgets/wxwidgets.cpp
View file @
bea07118
...
@@ -592,7 +592,7 @@ WindowSettings::~WindowSettings( )
...
@@ -592,7 +592,7 @@ WindowSettings::~WindowSettings( )
size
[
i
].
x
,
size
[
i
].
y
);
size
[
i
].
x
,
size
[
i
].
y
);
}
}
config_PutPsz
(
p_intf
,
"wx-config-last"
,
sCfg
.
mb_str
()
);
config_PutPsz
(
p_intf
,
"wx-config-last"
,
sCfg
.
mb_str
(
wxConvUTF8
)
);
}
}
void
WindowSettings
::
SetScreen
(
int
i_screen_w
,
int
i_screen_h
)
void
WindowSettings
::
SetScreen
(
int
i_screen_w
,
int
i_screen_h
)
...
...
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