Re: Grabbing mouse and keyboard in a GnomeDialog
- From: Elliot Lee <sopwith redhat com>
- To: Damien Miller <djm mindrot org>
- cc: gnome-list gnome org, recipient list not shown: ;
- Subject: Re: Grabbing mouse and keyboard in a GnomeDialog
- Date: Thu, 11 Nov 1999 19:39:08 -0500 (EST)
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]