设置应用的窗口名和标题

master
yutent 2023-09-07 13:37:32 +08:00
parent ff2be3b55f
commit 1760fbd212
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@ if [ -d unpack ]; then
sudo rm -rf unpack sudo rm -rf unpack
fi fi
version="3.0.1" version="3.0.2"
mkdir -p unpack/DEBIAN mkdir -p unpack/DEBIAN

View File

@ -11,6 +11,8 @@ class Window(Gtk.Window):
Gtk.Window.__init__(self, title = title) Gtk.Window.__init__(self, title = title)
self.set_default_size(width, height) self.set_default_size(width, height)
self.resize(width, height) self.resize(width, height)
self.set_wmclass('Hosts-Switch', 'Hosts-Switch')
self.set_title('Hosts-Switch')
def toggle_visible(self, icon): def toggle_visible(self, icon):