You are not logged in.

#1 2010-04-24 17:38:21

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Need help setting up auto resizing of GTK window

Hi,

I have a GTK image in a scrolled window in a top window and I need to find out how to arrange for the main window to accomodate size changes of the image. Resizing the scrolled window causes the top window to resize but resizing the image just makes the scrolled window to accomodate the change without a change in the top window size.

Any suggstions on how to do this while maintaining an automatic policy for the scrolled window?

My thanks in advance.


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

#2 2010-04-27 13:39:09

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: Need help setting up auto resizing of GTK window

just call gtk_widget_set_size_request on the window when the image size changes


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

Board footer

Powered by FluxBB