Reworked config dialog
authorYves Marcoz <yves@marcoz.org>
Fri, 23 Dec 2011 19:07:49 +0000 (11:07 -0800)
committerYves Marcoz <yves@marcoz.org>
Fri, 23 Dec 2011 19:12:54 +0000 (11:12 -0800)
src/config.py

index b9ea3ca..f6dc2de 100644 (file)
@@ -116,17 +116,10 @@ class Config():
 
 
         heading('Updating')
-        button = hildon.CheckButton(gtk.HILDON_SIZE_FINGER_HEIGHT)
-        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.set_active(self.config["woodchuck"])
-        button.connect("toggled", self.button_toggled, "woodchuck")
-        vbox.pack_start(button, expand=False)
+        label = gtk.Label(gtk.HILDON_SIZE_FINGER_HEIGHT)
+        label.set_label("Use Woodchuck network daemon, or the home-screen widget for automatic updates.")
+        label.set_line_wrap(True)
+        vbox.pack_start(label, expand=False)
 
         try:
             import woodchuck
@@ -145,6 +138,11 @@ class Config():
             button.set_alignment(0,0,1,1)
             vbox.pack_start(button, expand=False)
         else:
+            button = hildon.CheckButton(gtk.HILDON_SIZE_FINGER_HEIGHT)
+            button.set_label("Woodchuck-Based Automatic Update")
+            button.set_active(self.config["woodchuck"])
+            button.connect("toggled", self.button_toggled, "woodchuck")
+            vbox.pack_start(button, expand=False)
             add_setting('updateInterval')
             add_setting('expiry')