Re: Setting usize to (0,0)



On Thu, Nov 07, 2002 at 11:10:53AM -0800, Ian King [ES] wrote:
> Hi
> 
> Is it possible to call gtk_widget_set_usize(0,0) and have the requisition
> dimensions return that as well.  I need this behavior, if not is there a
> workaround I can do to achieve this?
> 

If you want a widget to be totally invisible, just call
gtk_widget_hide().

Widgets have to be at least 1x1 (the main historical reason for this
is that an X window and thus a GdkWindow has to be at least 1x1).
So changing the size request to 0x0 wouldn't help, widget would still
be allocated 1x1.

Havoc



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