Re: Initial size of GtkDrawingArea or GtkScrolledWindow

Paul Davis wrote:

> >How can I set an initial / default size for a GtkDrawingArea or a
> >GtkScrolledWindow?  gtk_widget_set_usize() sort of works, but then the
> >user can't make the window smaller than the initial size.  (I'm using
> >gtk+ 1.2.)
> attach to the size_request event, and override the allocation request.

Thanks.  I tried that, and it looked like it worked at first.  But, like
gtk_widget_set_usize(), that seems to set the widget's minimum size. 
(sawfish won't let me make the window any smaller.)


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