Difference between revisions of "User:Humitos/TouchTips"
Jump to navigation
Jump to search
(Created page with "Work in progress page to write down some code snippets that I'm finding in the meanwhile. = Touch and hold = * '''Browse''': Touch and hold to trigger right click palette (f...") |
|||
Line 9: | Line 9: | ||
The problem that I'm having is that '''event.touch.sequence''' doesn't tell me about the sequence itself. So, I don't know what was the GDK_TOUCH_BEGIN. | The problem that I'm having is that '''event.touch.sequence''' doesn't tell me about the sequence itself. So, I don't know what was the GDK_TOUCH_BEGIN. | ||
+ | |||
+ | ** from #gtk+ | ||
+ | |||
+ | (20:46:07) Company: humitos3: you can compare them | ||
+ | (20:46:24) Company: sequence1 == sequence2 | ||
+ | (20:46:36) Company: at least it works in C, but i sure hope it does in python, too | ||
+ | |||
+ | (20:54:08) Flyser__: humitos3: sounds like incomplete bindings. you might want to ask in #python or #introspection |
Revision as of 10:14, 10 August 2012
Work in progress page to write down some code snippets that I'm finding in the meanwhile.
Touch and hold
- Browse: Touch and hold to trigger right click palette (for links, downloading, copy etc)
I think we should use event.touch.sequence and look for the GDK_TOUCH_BEGIN and take its time. After that, compare this time with the actual one comming from event.touch.time and show the palette if it is bigger than 1000 milliseconds for example.
The problem that I'm having is that event.touch.sequence doesn't tell me about the sequence itself. So, I don't know what was the GDK_TOUCH_BEGIN.
- from #gtk+
(20:46:07) Company: humitos3: you can compare them (20:46:24) Company: sequence1 == sequence2 (20:46:36) Company: at least it works in C, but i sure hope it does in python, too
(20:54:08) Flyser__: humitos3: sounds like incomplete bindings. you might want to ask in #python or #introspection