Fixed bug triggered updates from widget too often.
authorYves <ymarcoz@n900-sdk.(none)>
Fri, 7 May 2010 14:30:12 +0000 (07:30 -0700)
committerYves <ymarcoz@n900-sdk.(none)>
Fri, 7 May 2010 14:30:12 +0000 (07:30 -0700)
debian/changelog
src/feedingit_widget.py

index 3813854..1433525 100644 (file)
@@ -1,3 +1,9 @@
+feedingit (0.6.1-8) unstable; urgency=low
+
+  * Fixed bug triggering updates from widgets too often
+
+ -- Yves <yves@marcoz.org>  Mon, 03 May 2010 21:44:19 -0800
+
 feedingit (0.6.1-7) unstable; urgency=low
 
   * Added check for broken feeds
index 81ae611..dd3a924 100644 (file)
@@ -193,7 +193,7 @@ class FeedingItHomePlugin(hildondesktop.HomePluginItem):
         
     def create_autoupdate_picker(self):
             picker = hildon.PickerButton(gtk.HILDON_SIZE_FINGER_HEIGHT, hildon.BUTTON_ARRANGEMENT_VERTICAL)
-            selector = self.create_selector(["Disabled", 0.02, 0.5, 1, 2, 4, 12, 24], "autoupdate")
+            selector = self.create_selector(["Disabled", 0.5, 1, 2, 4, 12, 24], "autoupdate")
             picker.set_selector(selector)
             picker.set_title("Frequency of updates from the widget")
             picker.set_text("Setup Feed Auto-updates","Update every %s hours" %str(self.autoupdate) )
@@ -302,7 +302,7 @@ class FeedingItHomePlugin(hildondesktop.HomePluginItem):
     def setup_autoupdate(self):
         if (float(self.autoupdate) > 0):
             if (not self.autoupdateID==False):
-                gobject.disconnect(self.autoupdateId)
+                gobject.source_remove(self.autoupdateId)
             self.autoupdateId = gobject.timeout_add_seconds(int(float(self.autoupdate)*3600), self.start_update)
         else:
             if (not self.autoupdateID==False):