[Goodies-dev] GTK+/GDK Question
Mike Massonnet
mmassonnet at gmail.com
Sat Dec 27 15:38:10 CET 2008
Hi,
I take it that you are trying to fix a bug (good catch :)) when the
selection is done with the keyboard.
That's easier than what you are trying to achieve. See the attached
patch.
But no, I don't know how to fire up events on mouse/key releases,
except a timeout and gdk_window_get_pointer(). See the attached test.c
file for a simple example.
Cheers
Mike
Le Sat, 27 Dec 2008 23:20:58 +1100,
David Collins <david.8.collins at gmail.com> a écrit :
> Hello. I am working with Mike Massonnet on xfce4-clipman-plugin, so I
> am using GTK+ and GDK.
>
> Can anyone tell me how I can -
>
> 1. set up an event-driven function that fires off whenever the shift
> key is released anywhere on the screen (ie. regardless of what
> application is being used at the time)
> 2. set up an event-driven function that fires off every time the left
> mouse is released anywhere on the screen (ie. regardless of what
> application is being used at the time).
>
> I have read for hours in the API references, but I can't work it out
> without some example code.
> Can someone give me some example code?
>
> Regards,
> David Collins
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keyboard-selection-fix.patch
Type: text/x-patch
Size: 565 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/goodies-dev/attachments/20081227/a4889eb2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 678 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/goodies-dev/attachments/20081227/a4889eb2/attachment.c>
More information about the Goodies-dev
mailing list