|
The rendering of the title is handled by the window manager. To check this, you would have to know how the particular theme renders the title, if it actually renders the title in the window, the size of the window title font, the available title space, etc. Then, you would use this information to create a PangoLayout object out of the string and retrieve the width of that layout. Then, compare that value to the available title space.
You should be able to see by now that this really isn't easy to do, and I don't even know where to start to get some of this data. I would recommend that you just place the title in the window and accept that it may be ellipsed or not viewed in some window managers.
_________________ Andrew Krause
Foundations of GTK+ Development: Buy now for only $31.49!
|