From: Olivier Andrieu MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: <17615.16328.960579.148427 at karryall.dnsalias.org> Date: Tue, 1 Aug 2006 13:49:28 +0200 To: Pascal Brisset Cc: LablGTK List Subject: Re: Resizing widget In-Reply-To: <44CF20C8.9070101 at free.fr> References: <44CF20C8.9070101 at free.fr> Content-Type: text/plain; charset=us-ascii Content-Length: 866 Pascal Brisset [Tuesday 1 August 2006] : > > Hi, > > is there a way to resize a widget ? (I feel so stupid asking for that :-() > For example, creating a frame with a specified width and height is easy: > but after reading the manual, greping the sources and googleing for more > than1 hour, I did not find how to resize a frame (similar to the > #set_default_size method for windows). Is it a property of the widget to > set ? yep, cf. the function `gtk_widget_set_size_request' or the equivalent properties `width-request' and `height-request'. http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-set-size-request In lablgtk it's the widget#misc#set_size_request method. And for a general explanation of how widgets sizes are determined, cf. http://developer.gnome.org/doc/API/2.0/gtk/GtkContainer.html#id3802029 -- Olivier