I've come across this bug while writing my app. In short, the app's window size is fixed, which does not work well with smaller screens such as in netbooks.
In those, the lower buttons are off the screen limits and cannot be used. I'd like to take this into account in the user interface, but first of all, I'd like to find out what the standard way to detect screen size is in GTK, if there is one.
So does anyone have any ideas on how to do that?
Of course, if you have multiple screens, this gives the size of a rectangle enclosing them both. This stuff is harder than it sounds, in a world with multiple screens in it...
Here is what I came up with:
I'm not sure that would be called 'standard,' but I hope that it helps.
I would say what you want is the answer to the following question:
How big would a window be if it was maximized?
Because beside the multiple screen setup there are also other problems like the size of the top panel, bottom panels (no longer in Ubuntu, but maybe other distros), window decorators,... This is actually not handled by Gtk but by the window manager. So I don't see any way to get this number unless you let the windowmanager actually do the maximization.
Therefore the answer to this question is easy:
So you could create a window, maximize it and then start to populate it with reasonable sized widgets.
You can get width and height in millimeters with this method: