heading('Updating')
button = hildon.CheckButton(gtk.HILDON_SIZE_FINGER_HEIGHT)
- button.set_label("Time-Based Automatic Update\n"
- + "(requires use of FeedingIt widget)")
- button.set_active(self.config["autoupdate"])
- button.connect("toggled", self.button_toggled, "autoupdate")
+ button.set_label("Widget Based Automatic Update\n"
+ + "(See FeedingIt widget for options)")
+ #button.set_active(self.config["autoupdate"])
+ #button.connect("toggled", self.button_toggled, "autoupdate")
vbox.pack_start(button, expand=False)
button = hildon.CheckButton(gtk.HILDON_SIZE_FINGER_HEIGHT)
button.set_label("Woodchuck-Based Automatic Update")
button.connect("clicked", install_woodchuck_clicked)
button.set_alignment(0,0,1,1)
vbox.pack_start(button, expand=False)
-
- add_setting('updateInterval')
- add_setting('expiry')
+ else:
+ add_setting('updateInterval')
+ add_setting('expiry')
heading('Network')
button = hildon.CheckButton(gtk.HILDON_SIZE_FINGER_HEIGHT)
(configParser.getint, "expiry", 24),
(configParser.getboolean, "autoupdate", False),
(configParser.getboolean, "woodchuck", True),
+ (configParser.getboolean, "askedAboutWoodchuck", False),
(configParser.getint, "updateInterval", 4),
(configParser.get, "orientation", "Automatic"),
(configParser.getboolean, "imageCache", False),
configParser.set(section, 'autoupdate', str(self.config["autoupdate"]))
configParser.set(section, 'updateInterval', str(self.config["updateInterval"]))
configParser.set(section, 'woodchuck', str(self.config["woodchuck"]))
+ configParser.set(section, 'askedAboutWoodchuck', str(self.config["askedAboutWoodchuck"]))
configParser.set(section, 'orientation', str(self.config["orientation"]))
configParser.set(section, 'imageCache', str(self.config["imageCache"]))
configParser.set(section, 'proxy', str(self.config["proxy"]))
return self.config["autoupdate"]
def getWoodchuckEnabled(self):
return self.config["woodchuck"]
+ def getAskedAboutWoodchuck(self):
+ return self.config["askedAboutWoodchuck"]
+ def setAskedAboutWoodchuck(self, value):
+ self.config["askedAboutWoodchuck"] = value
+ self.saveConfig()
def getUpdateInterval(self):
return float(self.config["updateInterval"])
def getReadFont(self):