-
- 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 );
-
- return;
+
+ wxString str( wxGTK_CONV_BACK( label->label ) );
+
+ if (check == (str.GetChar(1) == wxCHECKLBOX_CHECKED))
+ return;
+
+ str.SetChar( 1, check ? wxCHECKLBOX_CHECKED : wxCHECKLBOX_UNCHECKED );
+
+ gtk_label_set( label, wxGTK_CONV( str ) );
+
+ return;