View Single Post
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#330
Originally Posted by dwould View Post
double tap is a bit weird.. it's actually 'activated' since there doesn't seem to be a double tap event. this basically means if you click on a tweet, then click on it again you open the actions.
so if you are not selected, a double tap does as expected.
if you are already selected, then a double tap is fast enough to trigger the event twice.
if anyone knows a better event handle to use, please let me know
you probly already know all this, but I might as well post it anyway.

haven't checked your code, but I simply validate the event like so:
if event.type == gtk.gdk._2BUTTON_PRESS:
and it works fine.
you get 3 events from a doubleclick. the first click gives gtk.gdk._BUTTON_PRESS and the second gives gtk.gdk._BUTTON_PRESS and gtk.gdk._2BUTTON_PRESS. you can set the speed required to register a doubleclick. I don't remember exactly how, but it's in the ref manual.

if you're using Qt then I have no idea, but it might be similar.
__________________
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One

Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.