Re: Can't grab keyboard
- From: Havoc Pennington <hp redhat com>
- To: "Dinesh Nadarajah" <dxn1972 hotmail com>
- Cc: gtk-list gnome org
- Subject: Re: Can't grab keyboard
- Date: 05 May 2001 18:05:05 -0400
"Dinesh Nadarajah" <dxn1972 hotmail com> writes:
>
> I am trying to grab the keyboard using the command gdk_grab_keyboard() and am passing
> (GtkWidget *)->window, FALSE, GDK_CURRENT_TIME as paramaters. The function is executed
> just before gtk_main(). But I am unable to grab the keyboard. Am I doing something
> wrong here.
What do you mean by "unable", are there error messages?
> The reason I am doing this because, we are trying to convert some Xlib based legacy
> software into Gtk/Gdk based. As a first step we are developing the GUI part first. On
> this note, I also would like to find out how easy (or hard) it is to integrate Xlib
> based command into Gtk/Gdk (like the following):
>
> Dispay *display; display variable in Xlib apps.
>
> XGetInputFocus(...); To get the current input focus window
>
> XSendEvent;
>
Sure, those work fine. Include gdk/gdkx.h to get access to the stuff
you need.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]