[Rapier-commits] r152 - in trunk: debian src

rapier-commits at garage.maemo.org rapier-commits at garage.maemo.org
Sun Aug 26 11:22:11 EEST 2007


Author: pamadio
Date: 2007-08-26 11:22:10 +0300 (Sun, 26 Aug 2007)
New Revision: 152

Modified:
   trunk/debian/changelog
   trunk/src/rapier
Log:
Touchscreen motion should be a bit smoother

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2007-08-19 18:47:46 UTC (rev 151)
+++ trunk/debian/changelog	2007-08-26 08:22:10 UTC (rev 152)
@@ -1,3 +1,9 @@
+rapier (1.0.3-0) unstable; urgency=low
+
+  * Touchscreen motion should be a bit smoother.
+
+ -- Pierre Amadio <melmoth at localhost>  Sun, 26 Aug 2007 10:21:28 +0200
+
 rapier (1.0.2-0) unstable; urgency=low
 
   * Adding a debug option.

Modified: trunk/src/rapier
===================================================================
--- trunk/src/rapier	2007-08-19 18:47:46 UTC (rev 151)
+++ trunk/src/rapier	2007-08-26 08:22:10 UTC (rev 152)
@@ -106,7 +106,10 @@
         self.maxChapter=0
         self.maxVerse=0
         self.selected_verse=0
+        #is the touch screen currently pressed ?
         self.buttonPressed=False
+        #how many unit of motion to change the display ?
+        self.motion_adjust=0
         self.waitForSearchFlag=False
         self.waitForRemoteModulesFlag=False
         self.waitForModuleManagementFlag=False
@@ -1200,7 +1203,8 @@
 
         cur=event.y
         modif=self.y['new']-cur
-        adj.set_value(adjval+modif)
+        #adj.set_value(adjval+modif)
+        self.motion_adjust+=modif
             
         self.y['old']=self.y['new']
         self.y['new']=cur
@@ -1544,6 +1548,15 @@
         if self.waitForModuleManagementFlag:
             self.waitingWinProgressBar.pulse()
 
+
+        #textview motion update:
+        adj=self.textDisplay_scrolledWindow.get_vadjustment()
+        adjval=adj.get_value()
+        if self.motion_adjust!=0:
+            print 'yo',self.motion_adjust
+            adj.set_value(adjval+self.motion_adjust)
+            self.motion_adjust=0
+
             
         while self.qAnswer.qsize():
             curJob=self.qAnswer.get(0)



More information about the Rapier-commits mailing list