summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranziska Kunsmann <hi@kunsmann.eu>2023-05-01 10:19:55 +0200
committerFranziska Kunsmann <hi@kunsmann.eu>2023-05-01 10:19:55 +0200
commit1500567e50c8ab20314068566847dcdea109c63d (patch)
tree7e756c9df3cedc64180fd671ef2f1b52faaa8872
parentf043247f4bc2f3c652e06c6a27386533b3b8bdbc (diff)
gui: add wmclass
This is needed so we can properly identify the switcher in i3 layouts
-rw-r--r--gui.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index 8aa5abe..232882c 100644
--- a/gui.py
+++ b/gui.py
@@ -26,6 +26,8 @@ class PyATEMSwitcherGui():
self.window = Gtk.Window()
self.window.connect("destroy", self._exit)
+ self.window.set_wmclass('pygtk-atem-switcher', 'PyGTK-ATEM-Switcher')
+
self.switcher = switcher
self.switcher.on_connect(self._switcher_connected)
self.switcher.on_connect_attempt(self._switcher_connect_attempt)
@@ -71,6 +73,8 @@ class PyATEMSwitcherGui():
for idx,i in enumerate(switcher.inputProperties):
if not i.shortName:
break
+ if i.shortName.lower() in ('-', 'empty', 'x'):
+ continue
log.debug(f'Creating Button for {i.shortName} of type {i.externalPortType}: {i.longName}')
btn = Gtk.Button.new_with_label(
i.longName