Re: widget size and position



On Mon, Nov 11, 2002 at 05:14:19PM +0100, znt fabio virgilio it wrote:
-- Messaggio originale --

Excuse for the private post... wrong button :P

I think gtk_widget_set_usize is depricated so
it should be gtk_widget_set_size_request.
(not sure about the spelling there)


the gtk_widget_set_size_request, if I'm not wrong is to set the *minimum*
widget size.
I'd like to set a *whatever* size. 
Is this possible?


Inside a GtkFixed, widgets always get their minimum size. So
gtk_widget_set_size_request() would set the actual size.

Outside of GtkFixed, you just have to pack your containers in such a
way that the widget always gets its minimum size. This will mean
either disabling resize for the toplevel window
(gtk_window_set_resizable(window, FALSE)) or ensuring that on resize,
the extra space goes to a widget which is not your fixed-size widget.

Havoc




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