Merge branch 'stable' master
authorandrei1089 <andrei.mirestean@gmail.com>
Mon, 22 Mar 2010 21:26:56 +0000 (23:26 +0200)
committerandrei1089 <andrei.mirestean@gmail.com>
Mon, 22 Mar 2010 21:26:56 +0000 (23:26 +0200)
build_pedo.py
debian/changelog
src/usr/lib/hildon-desktop/pedometer_widget_home.py

index cdbb363..753b4d2 100644 (file)
@@ -41,7 +41,7 @@ if __name__ == "__main__":
     #  p.preremove="""#!/bin/sh
     #  chmod +x /usr/bin/mclock.py""" #Set here your pre remove script
     version = "0.3"           #Version of your software, e.g. "1.2.0" or "0.8.2"
-    build = "3"                 #Build number, e.g. "1" for the first build of this version of your software. Increment for later re-builds of the same version of your software.
+    build = "4"                 #Build number, e.g. "1" for the first build of this version of your software. Increment for later re-builds of the same version of your software.
     #Text with changelog information to be displayed in the package "Details" tab of the Maemo Application Manager
     #changeloginformation ="New features: \n*fixed Imperial units bug\n*option to set sensitivity\n*options to set step length\n*calculate number of lost calories\n*show graphs of steps/distance/calories\n*save history in XML file\n*set alarm for steps/calories/distance\n*option to pause timer when not walking"
     changeloginformation = open("debian/changelog").read()
index 4dbb3e9..535b43a 100644 (file)
@@ -1,3 +1,10 @@
+pedometerhomewidget (0.3-4) stable; urgency=low
+
+  * Fix widget aspect update bug
+  *
+
+ -- Andrei Mirestean <andrei.mirestean@gmail.com>  Mon, 22 Mar 2010 23:10:28 +0200
+
 pedometerhomewidget (0.3-3) stable; urgency=low
 
   * Fix bug #5407: Count steps correctly if the counter is running
index b0c14e9..929f630 100644 (file)
@@ -1456,12 +1456,13 @@ class PedometerHomePlugin(hildondesktop.HomePluginItem):
 
         self.mainvbox.show_all()
         self.add(self.mainvbox)
-        self.update_aspect()
 
         self.connect("unrealize", self.close_requested)
         self.set_settings(True)
         self.connect("show-settings", self.show_settings)
 
+        self.config.add_observer(self.update_aspect)
+
     def eventBoxGraph_clicked(self, widget, data=None):
         widget.set_state(gtk.STATE_ACTIVE)
 
@@ -1643,7 +1644,7 @@ class PedometerHomePlugin(hildondesktop.HomePluginItem):
 
         def selectorUI_changed(selector, data):
             aspect = selectorUI.get_active(0)
-            widget.update_aspect()
+            self.config.set_aspect(aspect)
 
         def logButton_changed(checkButton):
             logging = checkButton.get_active()