~cmiller/ubuntu/quantal/deluge/fix-parameter-move-storage

« back to all changes in this revision

Viewing changes to deluge/plugins/label/label/gtkui/sidebar_menu.py

  • Committer: Bazaar Package Importer
  • Author(s): Cristian Greco
  • Date: 2009-12-24 00:57:59 UTC
  • mfrom: (4.1.9 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091224005759-ifkuzevkdqqx4jle
Tags: 1.2.0~rc5-1
* New upstream version.
  - fix startup with fresh configs. (Closes: #560384)
* debian/control: drop useless dependencies on dbus for deluge-gtk.
* fix_manifest_in.patch: dropped, file MANIFEST.in has been deleted by
  upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
 
157
157
 
158
158
class OptionsDialog(object):
159
 
    spin_ids = ["max_download_speed", "max_upload_speed", "max_upload_slots", "max_connections", "stop_ratio"]
 
159
    spin_ids = ["max_download_speed", "max_upload_speed", "stop_ratio"]
 
160
    spin_int_ids = ["max_upload_slots", "max_connections"]
160
161
    chk_ids = ["apply_max", "apply_queue", "stop_at_ratio", "apply_queue", "remove_at_ratio",
161
162
        "apply_move_completed", "move_completed", "is_auto_managed", "auto_add"]
162
163
 
197
198
    def load_options(self, options):
198
199
        log.debug(options.keys())
199
200
 
200
 
        for id in self.spin_ids:
 
201
        for id in self.spin_ids + self.spin_int_ids:
201
202
            self.glade.get_widget(id).set_value(options[id])
202
203
        for id in self.chk_ids:
203
204
            self.glade.get_widget(id).set_active(bool(options[id]))
221
222
 
222
223
        for id in self.spin_ids:
223
224
            options[id] = self.glade.get_widget(id).get_value()
 
225
        for id in self.spin_int_ids:
 
226
            options[id] = self.glade.get_widget(id).get_value_as_int()
224
227
        for id in self.chk_ids:
225
228
            options[id] = self.glade.get_widget(id).get_active()
226
229