git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4247
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
XrmDatabase wxResourceDatabase;
/* Useful buffer, initialized in wxCommonInit */
XrmDatabase wxResourceDatabase;
/* Useful buffer, initialized in wxCommonInit */
-char *wxBuffer = (char *) NULL;
+wxChar *wxBuffer = (wxChar *) NULL;
/* Windows List */
wxWindowList wxTopLevelWindows;
/* Windows List */
wxWindowList wxTopLevelWindows;
wxDataFormat format( formatAtom );
#ifdef __WXDEBUG__
wxDataFormat format( formatAtom );
#ifdef __WXDEBUG__
- wxLogDebug("Drop target: drag has format: %s", format.GetId().c_str() );
+ wxLogDebug( wxT("Drop target: drag has format: %s"), format.GetId().c_str() );
#endif // Debug
if (m_dataObject->IsSupportedFormat( format ))
#endif // Debug
if (m_dataObject->IsSupportedFormat( format ))
else
{
// invalid number - set text as is (wxMSW compatible)
else
{
// invalid number - set text as is (wxMSW compatible)
- gtk_entry_set_text( GTK_ENTRY(m_widget), value.c_str() );
+ gtk_entry_set_text( GTK_ENTRY(m_widget), value.mbc_str() );
XrmDatabase wxResourceDatabase;
/* Useful buffer, initialized in wxCommonInit */
XrmDatabase wxResourceDatabase;
/* Useful buffer, initialized in wxCommonInit */
-char *wxBuffer = (char *) NULL;
+wxChar *wxBuffer = (wxChar *) NULL;
/* Windows List */
wxWindowList wxTopLevelWindows;
/* Windows List */
wxWindowList wxTopLevelWindows;
wxDataFormat format( formatAtom );
#ifdef __WXDEBUG__
wxDataFormat format( formatAtom );
#ifdef __WXDEBUG__
- wxLogDebug("Drop target: drag has format: %s", format.GetId().c_str() );
+ wxLogDebug( wxT("Drop target: drag has format: %s"), format.GetId().c_str() );
#endif // Debug
if (m_dataObject->IsSupportedFormat( format ))
#endif // Debug
if (m_dataObject->IsSupportedFormat( format ))
else
{
// invalid number - set text as is (wxMSW compatible)
else
{
// invalid number - set text as is (wxMSW compatible)
- gtk_entry_set_text( GTK_ENTRY(m_widget), value.c_str() );
+ gtk_entry_set_text( GTK_ENTRY(m_widget), value.mbc_str() );
{ m_started = TRUE; return wxTimer::Start(millisecs, FALSE); }
virtual void Notify()
{ m_started = TRUE; return wxTimer::Start(millisecs, FALSE); }
virtual void Notify()
- { wxLogTrace("Checking dial up network status."); m_dupman->CheckStatus(); }
+ { wxLogTrace(wxT("Checking dial up network status.")); m_dupman->CheckStatus(); }
virtual void Stop()
{ if ( m_started ) wxTimer::Stop(); }
virtual void Stop()
{ if ( m_started ) wxTimer::Stop(); }
m_IsOnline = -1;
m_ISPname = isp;
wxString cmd;
m_IsOnline = -1;
m_ISPname = isp;
wxString cmd;
- if(m_ConnectCommand.Find("%s"))
+ if(m_ConnectCommand.Find(wxT("%s")))
cmd.Printf(m_ConnectCommand,m_ISPname.c_str());
else
cmd = m_ConnectCommand;
cmd.Printf(m_ConnectCommand,m_ISPname.c_str());
else
cmd = m_ConnectCommand;
}
m_IsOnline = -1;
wxString cmd;
}
m_IsOnline = -1;
wxString cmd;
- if(m_HangUpCommand.Find("%s"))
+ if(m_HangUpCommand.Find(wxT("%s")))
cmd.Printf(m_HangUpCommand,m_ISPname.c_str(), m_DialProcess);
else
cmd = m_HangUpCommand;
cmd.Printf(m_HangUpCommand,m_ISPname.c_str(), m_DialProcess);
else
cmd = m_HangUpCommand;
wxDialUpManagerImpl::SetWellKnownHost(const wxString& hostname, int portno)
{
/// does hostname contain a port number?
wxDialUpManagerImpl::SetWellKnownHost(const wxString& hostname, int portno)
{
/// does hostname contain a port number?
- wxString port = hostname.After(':');
+ wxString port = hostname.After(wxT(':'));
- m_BeaconHost = hostname.Before(':');
- m_BeaconPort = atoi(port);
+ m_BeaconHost = hostname.Before(wxT(':'));
+ m_BeaconPort = wxAtoi(port);
struct sockaddr_in serv_addr;
m_IsOnline = 0; // assume false
struct sockaddr_in serv_addr;
m_IsOnline = 0; // assume false
- if((hp = gethostbyname(m_BeaconHost)) == NULL)
+ if((hp = gethostbyname(m_BeaconHost.mb_str())) == NULL)
return; // no DNS no net
serv_addr.sin_family = hp->h_addrtype;
return; // no DNS no net
serv_addr.sin_family = hp->h_addrtype;
pattern.Printf(wxT("-*-*-*-*-*-*-*-*-*-*-%c-*-*-*"), spacing);
// get the list of all fonts
pattern.Printf(wxT("-*-*-*-*-*-*-*-*-*-*-%c-*-*-*"), spacing);
// get the list of all fonts
- return XListFonts((Display *)wxGetDisplay(), pattern, 32767, nFonts);
+ return XListFonts((Display *)wxGetDisplay(), pattern.mb_str(), 32767, nFonts);
}
static bool ProcessFamiliesFromFontList(wxFontEnumerator *This,
}
static bool ProcessFamiliesFromFontList(wxFontEnumerator *This,
for ( int n = 0; n < nFonts; n++ )
{
char *font = fonts[n];
for ( int n = 0; n < nFonts; n++ )
{
char *font = fonts[n];
- if ( !wxString(font).Matches("-*-*-*-*-*-*-*-*-*-*-*-*-*-*") )
+ if ( !wxString(font).Matches(wxT("-*-*-*-*-*-*-*-*-*-*-*-*-*-*")) )
{
// it's not a full font name (probably an alias)
continue;
{
// it's not a full font name (probably an alias)
continue;
char *family = dash + 1;
dash = strchr(family, '-');
*dash = '\0'; // !NULL because Matches() above succeeded
char *family = dash + 1;
dash = strchr(family, '-');
*dash = '\0'; // !NULL because Matches() above succeeded
- if ( families.Index(family) == wxNOT_FOUND )
+ if ( families.Index(fam) == wxNOT_FOUND )
- if ( !This->OnFontFamily(family) )
+ if ( !This->OnFontFamily(fam) )
{
// stop enumerating
return FALSE;
}
{
// stop enumerating
return FALSE;
}
// get the list of all fonts
int nFonts;
// get the list of all fonts
int nFonts;
- char **fonts = XListFonts((Display *)wxGetDisplay(), pattern,
+ char **fonts = XListFonts((Display *)wxGetDisplay(), pattern.mb_str(),
32767, &nFonts);
if ( !fonts )
32767, &nFonts);
if ( !fonts )
for ( int n = 0; n < nFonts; n++ )
{
char *font = fonts[n];
for ( int n = 0; n < nFonts; n++ )
{
char *font = fonts[n];
- if ( !wxString(font).Matches("-*-*-*-*-*-*-*-*-*-*-*-*-*-*") )
+ if ( !wxString(font).Matches(wxT("-*-*-*-*-*-*-*-*-*-*-*-*-*-*")) )
{
// it's not a full font name (probably an alias)
continue;
{
// it's not a full font name (probably an alias)
continue;