synthetic button press event in GTK1.2
- From: mallum <breakfast 10 am>
- To: gtk-list gnome org
- Subject: synthetic button press event in GTK1.2
- Date: Tue, 12 Feb 2002 00:57:36 +0000
I need to send a 'synthetic' button release event. Im under the
impression I can only do this with a call to Xlibs XSendEvent.
However Im not having much luck :(
My main problem seems to be translating GDK Xlib representations back
to actual Xlib ones; My XSendEvent looks something like;
XSendEvent((Display*)GDK_DISPLAY(),
GDK_WINDOW_XWINDOW(((GdkEventAny*)event)->window)
,False, ButtonReleaseMask, (XEvent *)&syn_event);
Does that look right ? Event better does anyone have an example of
accomplishing this actual feat with GTK ?
-- mallum
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]