From 32c81a15146905bf28fdccc7c945962a88d7546c Mon Sep 17 00:00:00 2001 From: Yves Marcoz Date: Fri, 23 Dec 2011 11:07:49 -0800 Subject: [PATCH] Reworked config dialog --- src/config.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/config.py b/src/config.py index b9ea3ca..f6dc2de 100644 --- a/src/config.py +++ b/src/config.py @@ -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') -- 1.7.9.5