summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuciana Fujii Pontello <luciana@fujii.eti.br>2010-08-18 23:27:34 (GMT)
committerLuciana Fujii Pontello <luciana@fujii.eti.br>2010-08-19 20:14:32 (GMT)
commit1ff64e0d2cfe89cc1671fba865577ed4c1cc8f99 (patch)
tree40bb8706f1d916dfaa98288ed571715420f98162
parent8192d464117d7e8464c1cdb8d8aa3b04a3e04fb0 (diff)
downloadsltv-1ff64e0d2cfe89cc1671fba865577ed4c1cc8f99.tar.gz
sltv-1ff64e0d2cfe89cc1671fba865577ed4c1cc8f99.tar.xz
Enabling change of audio source during transmission
The combobox for audio choice is always sensitive, and we change the active-pad in the input-selector when the selected audio source is changed during transmission.
-rw-r--r--sltv/sltv.py4
-rw-r--r--sltv/ui/core.py5
2 files changed, 4 insertions, 5 deletions
diff --git a/sltv/sltv.py b/sltv/sltv.py
index d1adce1..d5c6c4e 100644
--- a/sltv/sltv.py
+++ b/sltv/sltv.py
@@ -550,6 +550,10 @@ class Sltv(gobject.GObject):
def set_audio_source(self, source_name):
self.audio_source = source_name
+ if self.playing():
+ self.input_selector.set_property(
+ "active-pad", self.audio_pads[source_name]
+ )
def set_preview(self, state):
self.preview_enabled = state
diff --git a/sltv/ui/core.py b/sltv/ui/core.py
index 30ca2a3..a9ee91e 100644
--- a/sltv/ui/core.py
+++ b/sltv/ui/core.py
@@ -53,7 +53,6 @@ class SltvUI:
self.sltv = Sltv()
self.sltv.connect("stopped", self.stopped)
self.sltv.connect("playing", self.playing)
- self.sltv.connect("preplay", self.preplay)
self.sltv.connect("error", self.error)
self.sltv.connect("pipeline-ready", self.on_pipeline_ready)
@@ -186,7 +185,6 @@ class SltvUI:
def stopped(self, sltv):
self.stop_button.set_sensitive(False)
self.play_button.set_sensitive(True)
- self.audio_sources_combobox.set_sensitive(True)
self.settings_menuitem.set_sensitive(True)
def playing(self, sltv):
@@ -194,9 +192,6 @@ class SltvUI:
self.stop_button.set_sensitive(True)
self.settings_menuitem.set_sensitive(False)
- def preplay(self, sltv):
- self.audio_sources_combobox.set_sensitive(False)
-
def error(self, sltv, msg):
message.MessageError(msg, self)