window focus

I have a window "A", which is a GtkWindow, what I tryed to do is:
If you click a button in the window "A", it will bring up another window

"B". by call gtk_widget_show(...)

Normally, if I brings up the window "B", window manager will set focus
to the window "B", but what I want to do is that in some case, the
window "A" is still in focus after brings up the window"B".

So I wonder:  is there a way to grab the focus of a window through some
gtk or gdk function??



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