From: andrei1089 Date: Mon, 22 Mar 2010 21:02:17 +0000 (+0200) Subject: Fix widget aspect update bug X-Git-Url: http://git.maemo.org/git/?p=pedometerwidget;a=commitdiff_plain;h=165134bd917a9d04d98f8ad883a2b88442937a6b Fix widget aspect update bug --- diff --git a/build_pedo.py b/build_pedo.py index cdbb363..753b4d2 100644 --- a/build_pedo.py +++ b/build_pedo.py @@ -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() diff --git a/debian/changelog b/debian/changelog index 4dbb3e9..535b43a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +pedometerhomewidget (0.3-4) stable; urgency=low + + * Fix widget aspect update bug + * + + -- Andrei Mirestean 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 index 97e9f50..0000000 --- a/install.sh +++ /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 - diff --git a/src/usr/lib/hildon-desktop/pedometer_widget_home.py b/src/usr/lib/hildon-desktop/pedometer_widget_home.py index d16cc03..8ba5053 100644 --- a/src/usr/lib/hildon-desktop/pedometer_widget_home.py +++ b/src/usr/lib/hildon-desktop/pedometer_widget_home.py @@ -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()