Re: Grabbing mouse and keyboard in a GnomeDialog



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 11 Nov 1999, Elliot Lee wrote:

> 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...

I am already using gnome_dialog_run().

This does not force my WM to focus the dialog, which is what I require.

Regards,
Damien Miller
 
- --
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4K2RaormJ9RG1dI8RArqhAKCzM59PXoY0sg+BkJBf2fXjNoBDDACeK5Hi
NMzXhDETlToNi5fj81WyO8M=
=jtJz
-----END PGP SIGNATURE-----



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