Fix widget aspect update bug
authorandrei1089 <andrei.mirestean@gmail.com>
Mon, 22 Mar 2010 21:02:17 +0000 (23:02 +0200)
committerandrei1089 <andrei.mirestean@gmail.com>
Mon, 22 Mar 2010 21:14:14 +0000 (23:14 +0200)
build_pedo.py
debian/changelog
install.sh [deleted file]
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
diff --git a/install.sh b/install.sh
deleted file mode 100755 (executable)
index 97e9f50..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
- cp pedometer.py /usr/lib/hildon-desktop/pedometer_widget_home.py
-# cp pedometer_widget_home.desktop /usr/share/applications/hildon-home/pedometer_widget_home.desktop
-
index d16cc03..8ba5053 100644 (file)
@@ -1404,12 +1404,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)
 
@@ -1591,7 +1592,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()