From 9677585e2ac1529be7cb3d417545bbf5ba634201 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 5 Oct 2015 23:00:17 +0200 Subject: implement signal-handler, connect audio-selector to it --- voctogui/lib/audioselector.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'voctogui/lib/audioselector.py') 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) -- cgit v1.2.3