Re: GdkWindow's position
- From: tomas tuxteam de
- To: Michael Torrie <torriem chem byu edu>
- Cc: GTK App-Dev <gtk-app-devel-list gnome org>
- Subject: Re: GdkWindow's position
- Date: Mon, 5 Feb 2007 05:36:30 +0000
-----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-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]