Populate desktop page

pull/6/head
axtloss 2 years ago
parent 975ac373b6
commit 7d5538ab64

@ -0,0 +1,14 @@
desktops = [
"Onyx",
"Gnome",
"Kde",
"Budgie",
"Mate",
"Cinnamon",
"Lxqt",
"Sway",
"i3-gaps",
"Herbstluftwm",
"Awesome",
"bspwm"
]

@ -69,6 +69,7 @@ jade_gui_sources = [
'main.py', 'main.py',
'window.py', 'window.py',
'keymaps.py', 'keymaps.py',
'desktops.py',
] ]
install_data(jade_gui_sources, install_dir: moduledir) install_data(jade_gui_sources, install_dir: moduledir)

@ -35,6 +35,7 @@ from .functions.install_screen import InstallScreen
from .functions.finished_screen import FinishedScreen from .functions.finished_screen import FinishedScreen
from .locales.locales_list import locations from .locales.locales_list import locations
from .keymaps import keymaps from .keymaps import keymaps
from .desktops import desktops
@Gtk.Template(resource_path='/al/getcryst/jadegui/window.ui') @Gtk.Template(resource_path='/al/getcryst/jadegui/window.ui')
class JadeGuiWindow(Gtk.ApplicationWindow): class JadeGuiWindow(Gtk.ApplicationWindow):
@ -96,13 +97,12 @@ class JadeGuiWindow(Gtk.ApplicationWindow):
### --------- ### ---------
### Test desktops ### Test desktops
desktop_test = DesktopEntry(window=self, desktop="GNOME", button_group=None, **kwargs) onyx = DesktopEntry(window=self, desktop="Onyx", button_group=None, **kwargs) # Manually specifying onyx since the other entries need a button group to attach to
desktop_test_two = DesktopEntry(window=self, desktop="Onyx", button_group=desktop_test.select_button, **kwargs) self.desktop_screen.list_desktops.append(onyx)
desktop_test_three = DesktopEntry(window=self, desktop="KDE", button_group=desktop_test.select_button, **kwargs) for desktop in desktops:
desktop_test.select_button.set_active(True) if desktop is not "Onyx":
self.desktop_screen.list_desktops.append(desktop_test) print(desktop)
self.desktop_screen.list_desktops.append(desktop_test_two) self.desktop_screen.list_desktops.append(DesktopEntry(window=self, desktop=desktop, button_group=onyx.select_button, **kwargs))
self.desktop_screen.list_desktops.append(desktop_test_three)
### --------- ### ---------
### Test partitions ### Test partitions

Loading…
Cancel
Save