Changeset 222d4881482eba8445e38bbfb9a702ef1044409d
- Timestamp:
- 05/12/03 15:48:46
(5 years ago)
- Author:
- Cyril Deguet <asmax@videolan.org>
- git-committer:
- Cyril Deguet <asmax@videolan.org> 1070635726 +0000
- git-parent:
[cdc665c9f0baebccff35ba11caa4913ccf12d9da]
- git-author:
- Cyril Deguet <asmax@videolan.org> 1070635726 +0000
- Message:
* modules/gui/wxwindows/preferences_widget.cpp: replaced two ( ? : ) by
if / else to avoid compilation problems when wxwindows is not built
with unicode support
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re39089d |
r222d488 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000-2001 VideoLAN |
|---|
| 5 | | * $Id: preferences_widgets.cpp,v 1.15 2003/11/10 00:14:05 gbazin Exp $ |
|---|
| | 5 | * $Id: preferences_widgets.cpp,v 1.16 2003/12/05 14:48:46 asmax Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 612 | 612 | for( int i_index = 0; i_index < p_item->i_list; i_index++ ) |
|---|
| 613 | 613 | { |
|---|
| 614 | | combo->Append( ( p_item->ppsz_list_text && |
|---|
| 615 | | p_item->ppsz_list_text[i_index] ) ? |
|---|
| 616 | | wxU(p_item->ppsz_list_text[i_index]) : |
|---|
| 617 | | wxString::Format(wxT("%i"), |
|---|
| 618 | | p_item->pi_list[i_index]) ); |
|---|
| | 614 | if( p_item->ppsz_list_text && p_item->ppsz_list_text[i_index] ) |
|---|
| | 615 | { |
|---|
| | 616 | combo->Append( wxU(p_item->ppsz_list_text[i_index]) ); |
|---|
| | 617 | } |
|---|
| | 618 | else |
|---|
| | 619 | { |
|---|
| | 620 | combo->Append( wxString::Format(wxT("%i"), |
|---|
| | 621 | p_item->pi_list[i_index]) ); |
|---|
| | 622 | } |
|---|
| 619 | 623 | combo->SetClientData( i_index, (void *)p_item->pi_list[i_index] ); |
|---|
| 620 | 624 | if( p_item->i_value == p_item->pi_list[i_index] ) |
|---|
| 621 | 625 | { |
|---|
| 622 | 626 | combo->SetSelection( i_index ); |
|---|
| 623 | | combo->SetValue( ( p_item->ppsz_list_text && |
|---|
| 624 | | p_item->ppsz_list_text[i_index] ) ? |
|---|
| 625 | | wxU(p_item->ppsz_list_text[i_index]) : |
|---|
| 626 | | wxString::Format(wxT("%i"), |
|---|
| 627 | | p_item->pi_list[i_index]) ); |
|---|
| | 627 | if( p_item->ppsz_list_text && p_item->ppsz_list_text[i_index] ) |
|---|
| | 628 | { |
|---|
| | 629 | combo->SetValue( wxU(p_item->ppsz_list_text[i_index]) ); |
|---|
| | 630 | } |
|---|
| | 631 | else |
|---|
| | 632 | { |
|---|
| | 633 | combo->SetValue( wxString::Format(wxT("%i"), |
|---|
| | 634 | p_item->pi_list[i_index]) ); |
|---|
| | 635 | } |
|---|
| 628 | 636 | } |
|---|
| 629 | 637 | } |
|---|