(self)
| 720 | return False |
| 721 | |
| 722 | def play_toggled(self): |
| 723 | if self.player.is_playing(): |
| 724 | self.player.pause() |
| 725 | self.button.set_label(gtk.STOCK_MEDIA_PLAY) |
| 726 | else: |
| 727 | self.player.play() |
| 728 | if self.update_id == -1: |
| 729 | self.update_id = gobject.timeout_add(self.UPDATE_INTERVAL, |
| 730 | self.update_scale_cb) |
| 731 | self.button.set_label(gtk.STOCK_MEDIA_PAUSE) |
| 732 | |
| 733 | def scale_format_value_cb(self, scale, value): |
| 734 | if self.p_duration == -1: |
no test coverage detected