Not part of build

convert text to UTF8 instead of ascii
This commit is contained in:
dinglis%qnx.com 2001-10-18 14:19:00 +00:00
parent fece90dfc1
commit 92e5a57fa1
5 changed files with 5 additions and 10 deletions

View File

@ -89,7 +89,7 @@ NS_METHOD nsButton::SetLabel(const nsString& aText)
PtArg_t arg;
PtSetArg( &arg, Pt_ARG_TEXT_STRING,
NS_LossyConvertUCS2toASCII(aText).get(), 0 );
NS_ConvertUCS2toUTF8(aText).get(), 0 );
PtSetResources( mWidget, 1, &arg );
}

View File

@ -179,7 +179,7 @@ NS_METHOD nsCheckButton::SetLabel(const nsString& aText)
PtArg_t arg;
PtSetArg( &arg, Pt_ARG_TEXT_STRING,
NS_LossyConvertUCS2toASCII(aText).get(), 0 );
NS_ConvertUCS2toUTF8(aText).get(), 0 );
if( PtSetResources( mWidget, 1, &arg ) == 0 )
res = NS_OK;
}

View File

@ -167,7 +167,7 @@ NS_METHOD nsLabel::SetLabel(const nsString& aText)
PtArg_t arg;
PtSetArg( &arg, Pt_ARG_TEXT_STRING,
NS_LossyConvertUCS2toASCII(aText).get(), 0 );
NS_ConvertUCS2toUTF8(aText).get(), 0 );
if( PtSetResources( mWidget, 1, &arg ) == 0 )
res = NS_OK;
}

View File

@ -98,7 +98,7 @@ NS_METHOD nsTextHelper::SetText(const nsString &aText, PRUint32& aActualSize)
if (mWidget)
{
PtSetArg(&arg[0], Pt_ARG_TEXT_STRING,
NS_LossyConvertUCS2toASCII(aText).get(), 0);
NS_ConvertUCS2toUFT8(aText).get(), 0);
PtSetResources(mWidget, 1, arg);
}
@ -114,7 +114,7 @@ NS_METHOD nsTextHelper::InsertText(const nsString &aText, PRUint32 aStartPos, P
if (mWidget)
{
PtTextModifyText(mWidget, 0, 0, aStartPos,
NS_LossyConvertUCS2toASCII(aText).get(),
NS_ConvertUCS2toUTF8(aText).get(),
aText.Length());
}
aActualSize = aText.Length();

View File

@ -203,11 +203,6 @@ protected:
// native windows / widgets for this logical widget
virtual void DestroyNative(void);
// this is set when a given widget has the focus.
PRBool mHasFocus;
//
PRBool mIsDragDest;
//////////////////////////////////////////////////////////////////
//
// Photon event support methods