* wxMemoryStreams updates

* Various fixes about wxGTK and Unicode
* Various fixes in wxStreams


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1999-07-15 18:08:57 +00:00
parent 324dbfec39
commit c980c99263
20 changed files with 107 additions and 54 deletions

View File

@@ -212,10 +212,13 @@ void wxMenuBar::Append( wxMenu *menu, const wxString &title )
/* local buffer in multibyte form */
wxString buf;
buf << '/' << str.mb_str();
buf << _T('/') << str.c_str();
char *cbuf = new char[buf.Length()];
strcpy(cbuf, buf.mbc_str());
GtkItemFactoryEntry entry;
entry.path = (gchar *)buf.c_str(); // const_cast
entry.path = (gchar *)cbuf; // const_cast
entry.accelerator = (gchar*) NULL;
entry.callback = (GtkItemFactoryCallback) NULL;
entry.callback_action = 0;