def set_alpha(self): GTK3ClientWindow.set_alpha(self) rgb_formats = self._client_properties.get("encodings.rgb_formats", []) #gl_window_backing supports BGR(A) too: if "RGBA" in rgb_formats: rgb_formats.append("BGRA") if "RGB" in rgb_formats: rgb_formats.append("BGR")
def new_backing(self, bw, bh): widget = GTK3ClientWindow.new_backing(self, bw, bh) if self.drawing_area: self.remove(self.drawing_area) self.init_widget_events(widget) self.add(widget) self.drawing_area = widget #maybe redundant?: self.apply_geometry_hints(self.geometry_hints)
def destroy(self): self.remove_backing() GTK3ClientWindow.destroy(self)
def do_configure_event(self, event): log("GL do_configure_event(%s)", event) GTK3ClientWindow.do_configure_event(self, event) self._backing.paint_screen = True
def set_alpha(self): GTK3ClientWindow.set_alpha(self) rgb_formats = self._client_properties.get("encodings.rgb_formats", []) GLClientWindowCommon.add_rgb_formats(self, rgb_formats)
def new_backing(self, bw, bh): widget = GTK3ClientWindow.new_backing(self, bw, bh) self.add(widget)