From 41609360df272f5b0f744b688ef250dcf3224068 Mon Sep 17 00:00:00 2001 From: mirkobrombin Date: Fri, 9 Sep 2022 23:31:32 +0200 Subject: [PATCH] 0.0.7 - support for appimage - use dedicated pages for subsystem and extra settings - update presets --- VERSION | 2 +- debian/changelog | 2 +- meson.build | 2 +- vanilla_first_setup/dialogs/__init__.py | 0 vanilla_first_setup/dialogs/meson.build | 9 + vanilla_first_setup/dialogs/subsystem.py | 26 +++ vanilla_first_setup/gtk/dialog-subsystem.ui | 36 ++++ vanilla_first_setup/gtk/window.ui | 204 +++++++++++++----- vanilla_first_setup/meson.build | 1 + vanilla_first_setup/models/config.py | 15 +- vanilla_first_setup/models/preset.py | 5 +- vanilla_first_setup/utils/configurator.py | 14 ++ .../vanilla-first-setup.gresource.xml | 1 + vanilla_first_setup/window.py | 32 ++- 14 files changed, 280 insertions(+), 69 deletions(-) create mode 100644 vanilla_first_setup/dialogs/__init__.py create mode 100644 vanilla_first_setup/dialogs/meson.build create mode 100644 vanilla_first_setup/dialogs/subsystem.py create mode 100644 vanilla_first_setup/gtk/dialog-subsystem.ui diff --git a/VERSION b/VERSION index 99d85ec..5c4511c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.6 \ No newline at end of file +0.0.7 \ No newline at end of file diff --git a/debian/changelog b/debian/changelog index 8db4abd..59b0cb8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -vanilla-first-setup (0.0.6) jammy; urgency=low +vanilla-first-setup (0.0.7) jammy; urgency=low * First release diff --git a/meson.build b/meson.build index 1a414ff..9e355f3 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('io.github.vanilla-os.FirstSetup', - version: '0.0.6', + version: '0.0.7', meson_version: '>= 0.59.0', default_options: [ 'warning_level=2', 'werror=false', diff --git a/vanilla_first_setup/dialogs/__init__.py b/vanilla_first_setup/dialogs/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/vanilla_first_setup/dialogs/meson.build b/vanilla_first_setup/dialogs/meson.build new file mode 100644 index 0000000..1d436de --- /dev/null +++ b/vanilla_first_setup/dialogs/meson.build @@ -0,0 +1,9 @@ +pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name()) +dialogsdir = join_paths(pkgdatadir, 'vanilla_first_setup/dialogs') + +sources = [ + '__init__.py', + 'subsystem.py', +] + +install_data(sources, install_dir: dialogsdir) \ No newline at end of file diff --git a/vanilla_first_setup/dialogs/subsystem.py b/vanilla_first_setup/dialogs/subsystem.py new file mode 100644 index 0000000..8e2b3a7 --- /dev/null +++ b/vanilla_first_setup/dialogs/subsystem.py @@ -0,0 +1,26 @@ +# subsystem.py +# +# Copyright 2022 mirkobrombin +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundationat version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +from gi.repository import Gtk, Adw + + +@Gtk.Template(resource_path='/pm/mirko/FirstSetup/gtk/dialog-subsystem.ui') +class SubSystemDialog(Adw.Window): + __gtype_name__ = 'SubSystemDialog' + + def __init__(self, window, **kwargs): + super().__init__(**kwargs) + self.set_transient_for(window) diff --git a/vanilla_first_setup/gtk/dialog-subsystem.ui b/vanilla_first_setup/gtk/dialog-subsystem.ui new file mode 100644 index 0000000..665c00e --- /dev/null +++ b/vanilla_first_setup/gtk/dialog-subsystem.ui @@ -0,0 +1,36 @@ + + + + + + \ No newline at end of file diff --git a/vanilla_first_setup/gtk/window.ui b/vanilla_first_setup/gtk/window.ui index 0e210af..2fce80e 100644 --- a/vanilla_first_setup/gtk/window.ui +++ b/vanilla_first_setup/gtk/window.ui @@ -3,8 +3,8 @@