Re: [gtk-list] Re: Titlebars and set_uposition
- From: "Brian C. Lane" <nexus tatoosh com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Titlebars and set_uposition
- Date: Wed, 3 Jun 1998 19:04:33 -0700 (PDT)
On Wed, 3 Jun 1998, Michael J. Hammel wrote:
> In a previous message, Brian C. Lane says:
> > How can I find out how tall the titlebar is and whether or not it exists
> > (so I can place the window correctly with +0+0), also I need to know about
> > the resize bar so that when someone does a -geometry -0-0 it is placed
> > correctly in the lowerr right corner).
>
> You have to walk up the window tree (X windows, not GTK windows) using
> XQueryTree() in a loop till you find the window whose parent is the root
> window. This will be the Window Manager window. Grab the window attributes
>
> To my knowledge there isn't any way to do this from GTK/GDK. I looked, but
> there weren't any routines that would translate the coordinates or to query
> the parent window or the children of a window. I probably just missed them.
It looks to me like this is a failing of GDK/GTK. Are there any plans to
add this kind of functionality to GTK+? Parsing standard X arguments
should be included as well I think.
I just briefly looked at Xephem to see how it handles this stuff, and it
calls a routine called Xt[something] which I assume is a Motif routine to
handle parsing, I've got it compiled with LessTiff, but I haven't looked
at the LessTiff code to do the parsing yet.
Brian
---------------------------------------------------------------------------
Nexus Computing http://www.tatoosh.com/nexus
Software & Electronics for Linux nexus@tatoosh.com
Inside is a comfortable 70.11 F and Outside is a chilly 56.01 F
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]