Re: Grabbing mouse and keyboard in a GnomeDialog



On Fri, 12 Nov 1999, Damien Miller wrote:

> I have a small application (a passphrase requestor for OpenSSH) which
> opens up a single window (a GnomeDialog).
> 
> I would like to be able to force focus to the window when the
> application is run and prevent it from losing focus until the window
> is closed.
> 
> How can I do this?
> 
> I suspect that the gdk_keyboard_grab and gdk_pointer_grab are what I
> want, but I can't see how to get a GdkWindow from my GnomeDialog. Or
> am I on the wrong track entirely?

You may just want to use gnome_dialog_run() to run the dialog modally...

-- Elliot
Do not meddle in the affairs of dragons,
for you are crunchy and good with ketchup. 



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