not the functionality that wxPalette::Create() aims to provide.
*/
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "palette.h"
#endif
{
Display *display = (Display*) NULL;
- wxNode *node, *next;
+ wxList::compatibility_iterator node, next;
for (node = m_palettes.GetFirst(); node; node = next) {
wxXPalette *c = (wxXPalette *)node->GetData();
XFreeColormap(display, cmap);
next = node->GetNext();
- m_palettes.DeleteNode(node);
+ m_palettes.Erase(node);
delete c;
}
}
if (!M_PALETTEDATA || (M_PALETTEDATA->m_palettes.GetCount() == 0))
return wxTheApp->GetMainColormap(display);
- wxNode* node = M_PALETTEDATA->m_palettes.GetFirst();
+ wxList::compatibility_iterator node = M_PALETTEDATA->m_palettes.GetFirst();
if (!display && node)
{
wxXPalette* p = (wxXPalette*) node->GetData();
{
if (!M_PALETTEDATA)
return (unsigned long*) 0;
- wxNode *node;
+ wxList::compatibility_iterator node;
for (node = M_PALETTEDATA->m_palettes.GetFirst(); node; node = node->GetNext())
{