summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2009-05-25 01:53:48 -0400
committerPaul W. Frields <stickster@gmail.com>2009-05-25 01:53:48 -0400
commit800b1900df8ac1f7329f29793e0b1c972dca8277 (patch)
tree66e4da8fb1e76b03e3cccfc8e6ba0b241beea78a
parent28b71ba100269e3ff9e93d76da937092482819a6 (diff)
downloadpulsecaster-800b1900df8ac1f7329f29793e0b1c972dca8277.tar.gz
pulsecaster-800b1900df8ac1f7329f29793e0b1c972dca8277.tar.xz
pulsecaster-800b1900df8ac1f7329f29793e0b1c972dca8277.zip
Add subscribe on all PA events, fwiw
-rw-r--r--pulsecaster/ui.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pulsecaster/ui.py b/pulsecaster/ui.py
index 22203e3..6bf03ba 100644
--- a/pulsecaster/ui.py
+++ b/pulsecaster/ui.py
@@ -92,6 +92,11 @@ class PulseCasterUI:
# Fill the combo boxes initially
self.repop_sources()
+ self.pa.pulse_context_subscribe(self.pa.context,
+ 0x2ff,
+ self.repop_sources,
+ None)
+
def repop_sources(self, *args):
self.sources = self.pa.pulse_source_list()