diff options
author | MaZderMind <git@mazdermind.de> | 2015-10-05 23:00:17 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2015-10-05 23:00:17 +0200 |
commit | 9677585e2ac1529be7cb3d417545bbf5ba634201 (patch) | |
tree | 70defc697710200bc2dc9762c9ba49681b578f88 /voctogui/lib/audioselector.py | |
parent | ffe7e70f0b6c58f323e9b471c9e0a18549f6c9ee (diff) |
implement signal-handler, connect audio-selector to it
Diffstat (limited to 'voctogui/lib/audioselector.py')
-rw-r--r-- | voctogui/lib/audioselector.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/voctogui/lib/audioselector.py b/voctogui/lib/audioselector.py index ab8f31e..4f8f9ec 100644 --- a/voctogui/lib/audioselector.py +++ b/voctogui/lib/audioselector.py @@ -34,7 +34,8 @@ class AudioSelectorController(object): self.timer_iteration = 0 def on_audio_status(self, source): - self.combo.set_active_id(name) + self.log.info('on_audio_status callback w/ source: %s', source) + self.combo.set_active_id(source) def on_button_press_event(self, combo, event): if event.type != Gdk.EventType.DOUBLE_BUTTON_PRESS: @@ -67,5 +68,6 @@ class AudioSelectorController(object): self.timer_iteration += 1 value = combo.get_active_text() - self.log.debug('changed to %s', value) + self.log.info('changed to %s', value) self.set_enabled(False) + Connection.send('set_audio', value) |