wxString buf;
buf << _T('/') << str.c_str();
- char *cbuf = new char[buf.Length()];
+ char *cbuf = new char[buf.Length()+1];
strcpy(cbuf, buf.mbc_str());
GtkItemFactoryEntry entry;
void
wxMenu::Init( const wxString& title,
- long style
-#ifdef WXWIN_COMPATIBILITY
- , const wxFunction func
-#endif
- )
+ long style,
+ const wxFunction func
+ )
{
m_title = title;
m_items.DeleteContents( TRUE );
m_menu = gtk_menu_new(); // Do not show!
#endif
-#ifdef WXWIN_COMPATIBILITY
m_callback = func;
-#endif
m_eventHandler = this;
m_clientData = (void*) NULL;
m_items.Append( mitem );
}
+#if (GTK_MINOR_VERSION > 0)
static char* GetHotKey( const wxString &hotkey, char *hotbuf )
{
if (hotkey.IsEmpty()) return (char*) NULL;
}
return (char*) NULL;
}
+#endif
void wxMenu::Append( int id, const wxString &item, const wxString &helpStr, bool checkable )
{