/* Wolfram Gloger <u7y22ab@sunmail.lrz-muenchen.de>
I have implemented basic colormap support for the X11 versions of
-wxWindows, notably wxPalette::Create(). The way I did it is to
+wxWidgets, notably wxPalette::Create(). The way I did it is to
allocate additional read-only color cells in the default colormap. In
general you will get arbitrary pixel values assigned to these new
cells and therefore I added a method wxColourMap::TransferBitmap()
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())
{