Re: set_resize
- From: Pietro Battiston <toobaz email it>
- To: gtk-devel-list gnome org
- Subject: Re: set_resize
- Date: Thu, 15 Jan 2009 16:04:19 +0100
Il giorno gio, 15/01/2009 alle 09.41 -0500, Havoc Pennington ha scritto:
> 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.
I already considered my doubt as answered (see below), but I disagree
with what you say: if you call size_request "minimum size", why don't
you fulfill it, and how do you call "set_size_request"?!
Maybe you meant set_size_request?
>
> What you want is gtk_window_set_default_size() perhaps. Or
> gtk_window_resize(), or gtk_window_fullscreen()/gtk_window_maximize()
> perhaps.
What I wanted is: windows which don't overflow the screen when their
size_request (but not their set_size_request) is too big; however, I
understood this is impossible without coordinate improvements to the
window manager(s) _and_ gtk.
Pietro
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]