Re: [gtkmm] A small doc question



Am Mit, 2002-10-16 um 21.30 schrieb Jussi Pakkanen:
> 
> Currently the gtkmm 1.2 -> 2.0 porting guide says:
> 
> Change Gtk::Widget::set_usize() to set_default_size()
> 
> Shouldn't this be set_size_request instead of
> set_default_size?

Right, it should be set_size_request().  set_default_size() is a
Gtk::Window method.  This should be fixed.

However, you should generally try to avoid set_size_request() unless
it's absolutely necessary, since it won't allow the user to shrink the
widget below that size.  Having a proper container layout makes it
usually sufficient to call set_default_size() on the main window.

--Daniel





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