Re: [gtk-list] Re: more widget size problems/questions
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: more widget size problems/questions
- Date: Sun, 20 Jun 1999 21:03:06 -0400 (EDT)
On Sun, 20 Jun 1999, brent verner wrote:
>
> i agree that the WM *should* do this work, since it knows the actual
> size of the window before it is visible. i don't know much about
> Xlib (or anything else for that matter), but i wonder if the WM knows
> who the parent of the new window is. if so, it should be fairly
> simple to constrain the position of the new window to within the
> boundary of the parent window.
>
The WM knows the parent from gtk_window_set_transient_for(), so it should
be able to do this.
> i don't know enough about gtk internals, but it _seems_ to me
> that there must be some way to have gtk_widget_realize()
> make the appropriate requests for size that is being done
> by gtk_widget_show()...
>
The thing is that the size allocation process doesn't happen until the
toplevel window is on the screen (when GtkWindow gets a configure_event).
At least, I think that's how it works.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]