motif pulldowns and app colors

I'm working on an app that uses Motif in pseudocolor (256 colors) using a private colormap (we allocate most of the colors for our application). It ran fine on RedHat 7.1 until we tried to switch to Gnome on RedHat 7.1 (some time ago). This caused problems with dialogs and pulldown menus (the app colors would 'freak out' when these were displayed/managed). The fix for the color issues was to set the XmNvisual for all the problem widgets. This was working fine.

Now, trying to get the same app to run under FC4 and Gnome. All the dialogs are still behaving properly (colors are fine). However, I'm running into the same problem as before with pulldown widgets again. When selected, the app colors seem to revert to the default system colors, despite setting the XmNvisual propery.

I've tried also setting the XmNcolormap to the app's colormap for the problem widgets, with no success. This switching back to the default system color map only happens when pulldown (or popup) widgets are selected.

If anyone has experience with a similar situation (pulldown selections causing colors to revert to back to system defaults), please email or post
what you did to alieviate the problem.

Thanks.