get_istopmost() doesnt seem to work on the device v0.4-2
authorRyan Campbell <campbellr@gmail.com>
Fri, 21 May 2010 04:43:15 +0000 (22:43 -0600)
committerRyan Campbell <campbellr@gmail.com>
Fri, 21 May 2010 04:43:15 +0000 (22:43 -0600)
On my n900, the first call to get_istopmost fails, so the SP counter
isn't incremented.

Removed the get_istopmost() check for now, until I know why it isn't
working.

package/Makefile
package/debian/changelog
package/debian/files
package/src/ui/diablo/gui.py
package/src/ui/fremantle/gui.py

index 76a9307..d5f68c0 100644 (file)
@@ -5,7 +5,7 @@
 #edit these when creating a new release
 MAJOR_VER='0'
 MINOR_VER='4'
-PKG_VER='1'
+PKG_VER='2'
 
 compile:
        perl -ni -e 'print; exit if /^XB-Maemo-Icon-26:$$/' debian/control
index 9499ce2..4654069 100644 (file)
@@ -1,5 +1,5 @@
-mevemon (0.3-2) stable; urgency=low
+mevemon (0.4-2) stable; urgency=low
 
-  * Fix crash when starting mevemon without network connection
+    * minor bugfix
 
- -- Ryan Campbell <campbellr@gmail.com>  Thu, 06 May 2010 00:16:32 -0007
+ -- Ryan Campbell <campbellr@gmail.com>  Thu, 20 May 2010 22:29:23 -0007
index c0fa948..6868321 100644 (file)
@@ -1 +1 @@
-mevemon_0.3-1_all.deb user/utilities extra
+mevemon_0.4-2_all.deb user/utilities extra
index 4a95a7d..2fe9e56 100644 (file)
@@ -415,7 +415,7 @@ class CharacterSheetUI(BaseUI):
         self.add_label("<small><b>Balance:</b> %s ISK</small>" % self.sheet.balance, box)
 
         self.live_sp_val = self.controller.get_sp(self.uid, self.char_id)
-        self.live_sp = self.add_label("<small><b>Total SP:</b> %s</small>" %
+        self.live_sp = self.add_label("<small><b>Total SP:</b> %d</small>" %
                 self.live_sp_val, box)
         
         self.spps = self.controller.get_spps(self.uid, self.char_id)[0]
@@ -468,8 +468,11 @@ class CharacterSheetUI(BaseUI):
     def update_live_sp(self):
         # we don't want to keep the timer running in the background
         # when this callback returns False, the timer destorys itself
-        if not self.win.get_is_topmost():
-            return False
+       
+        # TODO: figure out why this doesn't work on the real device
+        #
+        #if not self.win.get_is_topmost():
+        #    return False
         
         self.live_sp_val = self.live_sp_val + self.spps * self.UPDATE_INTERVAL
         self.live_sp.set_label("<small><b>Total SP:</b> %d</small>" %
index 28fdef8..c66032a 100644 (file)
@@ -417,7 +417,7 @@ class CharacterSheetUI(BaseUI):
         self.add_label("<small><b>Balance:</b> %s ISK</small>" % self.sheet.balance, box)
 
         self.live_sp_val = self.controller.get_sp(self.uid, self.char_id)
-        self.live_sp = self.add_label("<small><b>Total SP:</b> %s</small>" %
+        self.live_sp = self.add_label("<small><b>Total SP:</b> %d</small>" %
                 self.live_sp_val, box)
         
         self.spps = self.controller.get_spps(self.uid, self.char_id)[0]
@@ -469,8 +469,11 @@ class CharacterSheetUI(BaseUI):
     def update_live_sp(self):
         # we don't want to keep the timer running in the background
         # when this callback returns False, the timer destorys itself
-        if not self.win.get_is_topmost():
-            return False
+        
+        # TODO: figure out why this doesn't work on the real device
+        #
+        #if not self.win.get_is_topmost():
+        #    return False
         
         self.live_sp_val = self.live_sp_val + self.spps * self.UPDATE_INTERVAL
         self.live_sp.set_label("<small><b>Total SP:</b> %d</small>" %