(self, **kwargs)
| 115 | before_suggest: str | None = None |
| 116 | |
| 117 | def __init__(self, **kwargs): |
| 118 | super().__init__(**kwargs) |
| 119 | |
| 120 | # Application object |
| 121 | self.app: Adw.Application = kwargs["application"] |
| 122 | |
| 123 | # GStreamer playbin object and related setup |
| 124 | self.player = Gst.ElementFactory.make("playbin", "player") |
| 125 | if self.player: |
| 126 | if bus := self.player.get_bus(): |
| 127 | bus.add_signal_watch() |
| 128 | bus.connect("message", self._on_gst_message) |
| 129 | |
| 130 | # Setup window |
| 131 | self.setup_actions() |
| 132 | self.setup() |
| 133 | |
| 134 | def setup_actions(self): |
| 135 | back = Gio.SimpleAction(name="back") |
nothing calls this directly
no test coverage detected