-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Feb 04, 2007 at 08:58:33PM -0700, Michael Torrie wrote:
> On Sun, 2007-02-04 at 03:25 -0300, Matí­as Alejandro Torres wrote:
[...]
> > Is there a way to get a widget's GdkWindow before it is drawn? 
> 
> I don't believe so.  Because the window manager has not placed it yet.
> Thus the gtk app has no way of knowing where the window will actually be
> placed.

On X it's "definitely no". Because only the X server knows about the
geometry the window will take (it depends on many things only the X
server can know). And this happens when the X window is realized.

You might want to hook into the "realize" signal[1]. I guess this is the
earliest point in time you can possibly nnow about your window's
geometry.

HTH

- --------
[1] 
<http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-realize>

- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFxsJeBcgs9XrR2kYRAmfgAJ9YbNVJxIigB1+K5NG/BXxvXdgM+ACfbp6c
rpNzMFMkGtpgsG0d1pGVJx8=
=GHas
-----END PGP SIGNATURE-----

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to