obtaining current viewport/scrolled window dimensions


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?


: http://jwm-art.net/

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