Nickolay> Hi Nickolay> This was discussed quite recently on mailing list: Nickolay> http://mail.gnome.org/archives/evince-list/2008-June/msg00013.html Nickolay> to be honest, I'm not quite sure how it can be implemented correctly. Nickolay> Probably we should switch buttons when we build for maemo or detect tablet Nickolay> mode somehow. Is there any way to detect tablet? Well, I took the job. I am not sure this is in line with the way Evince would like to implement it, but it works: * I have added a new menu option called "Drag Mode". * When in drag mode, the button 1 and 3 are swapped. Selection becomes drag, and vice-versa. * There is a new property of a view called "drag_mode". The only bug I could not fix is that by default the menu shows "drag mode" as ON, even though its value is false. You need to toggle it twice to make it work. The patch contains some simple printfs to help debug it/trace it. Comments?
Attachment:
rip.rip
Description: hack to swap dragging and selecting
-- Daniel M. German http://turingmachine.org/ http://silvernegative.com/ dmg (at) uvic (dot) ca replace (at) with @ and (dot) with .