obtaining current viewport/scrolled window dimensions



Hi,

I have a GtkDrawingArea within a GtkViewport within a
GtkScrolledWindow. I need the viewport dimensions so I can center the
contents of the drawing area when the drawn contents are smaller than
the viewport/window. There is a vague mention of "page_size" in the
documentation for scrolled window but no other clues.

How do I get these dimensions please?

Cheers,
James.


-- 
_
: http://jwm-art.net/
-audio/image/text/code



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