Re: set_resize



Hi,

2009/1/14 Pietro Battiston <toobaz email it>:
>
> the documentation for gtk_widget_size_request () says:
>
> "Also remember that the size request is not necessarily the size a
> widget will actually be allocated."
>
> While there may be a lot of reasons why a widget doesn't get the area
> requested, I imagine(d) the basic one would be "because there is not
> enough space on the screen for everyone".
>
> Instead, size_requests are indeed fulfilled at cost of greating a window
> much bigger than the screen. Then, I frankly don't see the point of
> set_size_request (but I understand why it's very rarely used!).

The size request should be called the "minimum size" but is only
called size request for historical reasons.

What you want is gtk_window_set_default_size() perhaps. Or
gtk_window_resize(), or gtk_window_fullscreen()/gtk_window_maximize()
perhaps.

Havoc


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