mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Not part of build
convert text to UTF8 instead of ascii
This commit is contained in:
parent
fece90dfc1
commit
92e5a57fa1
@ -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 );
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user