GtkScrolledWindow/GtkViewport question



Hi all,

I have a GtkScrolledWindow inside of a dialog window.

The scrolled window is used, because the contents of it can grow
dynamically. Therefore scrollbars should be available, if the screen
space runs out.

But when the dialog pops up, it should fit the initial contents without
scrollbars. Is there a way to find out how exactly the dialog window
should be resized to be big enough for the scrollbars not to be seen?

I played around with height and width until I found the exact magic
numbers, but I'd prefer a nicer way if possible.

Hope that was halfway comprehensible and looking forward to an
answer! :)

Cheers,
   Michael




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