Re: setTransientFor problem



On Fri, Dec 13, 2002 at 11:54:24AM +0100, Boris wrote:
I was reading and I found the function setTransientFor(window,
parent).  The problem is : how do I know wich is the second
gktwindow if I launch the second window with fork? Any advice to
solve this problem? Is posible to get the gtkwindow from a running
application?

I hope that my question will be understood.

You will have to get the X window ID of the parent window 
using GDK_WINDOW_XID (window->window) and then pass that to the 
child process and use Xlib XSetTransientForHint() to set the transient
parent of the second window.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]