GTK UI Torrent's options tab.

Set the apply button to sensitive if the value of a spin button changed. This was missing.
This commit is contained in:
Pedro Algarvio 2011-05-07 15:54:10 +01:00
parent a7bd953169
commit 4044f52f77
2 changed files with 771 additions and 417 deletions

File diff suppressed because it is too large Load Diff

View File

@ -71,7 +71,8 @@ class OptionsTab(Tab):
"on_button_edit_trackers_clicked": self._on_button_edit_trackers_clicked,
"on_chk_move_completed_toggled": self._on_chk_move_completed_toggled,
"on_chk_stop_at_ratio_toggled": self._on_chk_stop_at_ratio_toggled,
"on_chk_shared_toggled": self._on_chk_shared_toggled
"on_chk_shared_toggled": self._on_chk_shared_toggled,
"on_spin_value_changed": self._on_spin_value_changed
})
def start(self):
@ -233,3 +234,7 @@ class OptionsTab(Tab):
def _on_chk_shared_toggled(self, widget):
if not self.button_apply.is_sensitive():
self.button_apply.set_sensitive(True)
def _on_spin_value_changed(self, widget):
if not self.button_apply.is_sensitive():
self.button_apply.set_sensitive(True)