Re: [gtk-list] Re: scrolled image



> I simple want to open the image and display the window without scrollbars
> (if the image fits into the screen), letting then scrollbars appear when the
> user resizes the window making it smaller then the image size.
> I think its the standard behaviour of every image displayer.
> Maybe, when i first open the image i could add some pixel displacement
> taking into account the size of the scrollbars. But even if this would be
> possibile , i think the results could be different depending on the window
> manager and the themes used.
>
> Thank you for your interest.
>
> Alfio

Starting with a GtkLayout might be preferable. I think that it can be set to
only scroll when needed. Then you just need to make a little function that takes
the size of the image, and figures out where to place it in the scrolled area.

Later,
Chicane



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