// Purpose: implementation of GTK mnemonics conversion functions
// Author: Vadim Zeitlin
// Created: 2007-11-12
-// RCS-ID: $Id$
// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#endif
#include "wx/log.h"
-#include "wx/private/stattext.h" // for wxMarkupEntities
-
#include "wx/gtk/private/mnemonics.h"
+namespace
+{
+
+// ----------------------------------------------------------------------------
+// constants
+// ----------------------------------------------------------------------------
+
+// Names of the standard XML entities.
+const char *const entitiesNames[] =
+{
+ "&", "<", ">", "'", """
+};
+
+} // anonymous namespace
+
// ============================================================================
// implementation
// ============================================================================
size_t distanceFromEnd = label.end() - i;
// is this ampersand introducing a mnemonic or rather an entity?
- for (size_t j=0; j < wxMARKUP_ENTITY_MAX; j++)
+ for (size_t j=0; j < WXSIZEOF(entitiesNames); j++)
{
- const wxChar *entity = wxMarkupEntities[wxMARKUP_ELEMENT_NAME][j];
+ const char *entity = entitiesNames[j];
size_t entityLen = wxStrlen(entity);
if (distanceFromEnd >= entityLen &&