-
- wxString str = label->label;
-
- if (check == (str[1] == 'X')) return;
-
- if (check)
- str.SetChar( 1, 'X' );
- else
- str.SetChar( 1, '-' );
-
- gtk_label_set( label, str );
-
- wxCommandEvent event( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, GetId() );
- event.SetEventObject( this );
- event.SetInt( index );
- GetEventHandler()->ProcessEvent( event );
-
- return;
+
+ wxString str = wxString(label->label,*wxConvCurrent);
+
+ if (check == (str.GetChar(1) == wxT('X'))) return;
+
+ if (check)
+ str.SetChar( 1, wxT('X') );
+ else
+ str.SetChar( 1, wxT('-') );
+
+ gtk_label_set( label, str.mbc_str() );
+
+ return;