Running GTK in non-default visual



Title: Running GTK in non-default visual

Hi,

I am on a project that is looking to use the wxWidgets toolkit for cross platform software development. wxWidgets uses GTK2 when running under Linux or HP-UX.

On HP-UX our current application runs in an 8 bit visual. This is mainly because we are using overlay planes but also for performance reasons as well.  Therefore if I run a GTK2 application on HP-UX, GTK, by default creates all its windows in the 8 bit visual.  This leads to colour clash problems with our current app.  Therefore I have hacked around with the code to make GTK apps run in the visual plane I want them to run in (i.e. 24 bit and TrueColor).

If you are interested in how to do this then please drop me a line at I will mail you back the code changes.

Obviously it would be nice if this sort of thing was built into GTK using the GTK resource files.

Matt Dreezer



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]