Clean up src folder

This commit is contained in:
Heliguy
2023-11-13 00:48:32 -05:00
parent 173fed73e3
commit 2022b85e35
40 changed files with 71 additions and 76 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 719 B

After

Width:  |  Height:  |  Size: 719 B

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 410 B

After

Width:  |  Height:  |  Size: 410 B

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 627 B

After

Width:  |  Height:  |  Size: 627 B

View File

Before

Width:  |  Height:  |  Size: 193 B

After

Width:  |  Height:  |  Size: 193 B

View File

Before

Width:  |  Height:  |  Size: 517 B

After

Width:  |  Height:  |  Size: 517 B

View File

Before

Width:  |  Height:  |  Size: 395 B

After

Width:  |  Height:  |  Size: 395 B

View File

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

View File

Before

Width:  |  Height:  |  Size: 519 B

After

Width:  |  Height:  |  Size: 519 B

View File

Before

Width:  |  Height:  |  Size: 851 B

After

Width:  |  Height:  |  Size: 851 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 993 B

After

Width:  |  Height:  |  Size: 993 B

View File

Before

Width:  |  Height:  |  Size: 585 B

After

Width:  |  Height:  |  Size: 585 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 499 B

After

Width:  |  Height:  |  Size: 499 B

View File

@@ -104,11 +104,7 @@ template $WarehouseWindow: Adw.ApplicationWindow {
Label {
label: _("This could take a while.");
styles [
"description",
"body"
]
styles ["description", "body"]
}
}
@@ -130,20 +126,12 @@ template $WarehouseWindow: Adw.ApplicationWindow {
Label {
label: _("Uninstalling…");
styles [
"title-1",
"title"
]
styles ["title-1", "title"]
}
Label {
label: _("This could take a while.");
styles [
"description",
"body"
]
styles ["description", "body"]
}
}

View File

@@ -1,5 +1,5 @@
#!@PYTHON@
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-License-Identifier: GPL-3.0-only
class Config:
DEVEL = '@DEVEL@' == 'Development'

View File

@@ -4,7 +4,7 @@ import subprocess
import os
import pathlib
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/downgrade.ui")
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/../data/ui/downgrade.ui")
class DowngradeWindow(Adw.Window):
__gtype_name__ = "DowngradeWindow"

View File

@@ -4,7 +4,7 @@ import subprocess
import os
import pathlib
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/filter.ui")
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/../data/ui/filter.ui")
class FilterWindow(Adw.Window):
__gtype_name__ = "FilterWindow"

View File

@@ -5,15 +5,15 @@ gnome = import('gnome')
blueprints = custom_target('blueprints',
input: files(
'gtk/help-overlay.blp',
'window.blp',
'orphans.blp',
'filter.blp',
'popular_remotes.blp',
'remotes.blp',
'downgrade.blp',
'search_install.blp',
'snapshots.blp',
'properties.blp',
'../data/ui/window.blp',
'../data/ui/orphans.blp',
'../data/ui/filter.blp',
'../data/ui/popular_remotes.blp',
'../data/ui/remotes.blp',
'../data/ui/downgrade.blp',
'../data/ui/search_install.blp',
'../data/ui/snapshots.blp',
'../data/ui/properties.blp',
),
output: '.',
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
@@ -55,25 +55,32 @@ configure_file(
warehouse_sources = [
'__init__.py',
'main.py',
'window.py',
'properties_window.py',
'orphans_window.py',
'remotes_window.py',
'common.py',
'orphans.blp',
'filter_window.py',
'filter.blp',
'window.py',
'popular_remotes_window.py',
'style.css',
'remotes.blp',
'downgrade_window.py',
'downgrade.blp',
'search_install.blp',
'search_install_window.py',
'snapshots_window.py',
'snapshots.blp',
'app_row_widget.py',
'properties.blp',
'../data/style.css',
'properties_window.py',
'../data/ui/properties.blp',
'orphans_window.py',
'../data/ui/orphans.blp',
'remotes_window.py',
'../data/ui/remotes.blp',
'filter_window.py',
'../data/ui/filter.blp',
'downgrade_window.py',
'../data/ui/downgrade.blp',
'search_install_window.py',
'../data/ui/search_install.blp',
'snapshots_window.py',
'../data/ui/snapshots.blp',
]
configure_file(

View File

@@ -4,7 +4,7 @@ import subprocess
import os
import pathlib
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/orphans.ui")
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/../data/ui/orphans.ui")
class OrphansWindow(Adw.Window):
__gtype_name__ = "OrphansWindow"

View File

@@ -5,7 +5,7 @@ import os
import pathlib
import re
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/popular_remotes.ui")
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/../data/ui/popular_remotes.ui")
class PopularRemotesWindow(Adw.Window):
__gtype_name__ = "PopularRemotesWindow"

View File

@@ -4,7 +4,7 @@ import subprocess
import os
import pathlib
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/properties.ui")
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/../data/ui/properties.ui")
class PropertiesWindow(Adw.Window):
__gtype_name__ = "PropertiesWindow"

View File

@@ -5,7 +5,7 @@ import subprocess
import os
import re
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/remotes.ui")
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/../data/ui/remotes.ui")
class RemotesWindow(Adw.Window):
__gtype_name__ = "RemotesWindow"

View File

@@ -4,7 +4,7 @@ import subprocess
import os
import pathlib
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/search_install.ui")
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/../data/ui/search_install.ui")
class SearchInstallWindow (Adw.Window): # TODO: stop execution of thread when search is changed
__gtype_name__ = "SearchInstallWindow"

View File

@@ -5,7 +5,7 @@ import os
import pathlib
import time
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/snapshots.ui")
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/../data/ui/snapshots.ui")
class SnapshotsWindow(Adw.Window):
__gtype_name__ = "SnapshotsWindow"

View File

@@ -1,35 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/io/github/flattool/Warehouse">
<file preprocess="xml-stripblanks">window.ui</file>
<file preprocess="xml-stripblanks">orphans.ui</file>
<file preprocess="xml-stripblanks">filter.ui</file>
<file preprocess="xml-stripblanks">popular_remotes.ui</file>
<file preprocess="xml-stripblanks">remotes.ui</file>
<file preprocess="xml-stripblanks">downgrade.ui</file>
<file preprocess="xml-stripblanks">search_install.ui</file>
<file preprocess="xml-stripblanks">snapshots.ui</file>
<file preprocess="xml-stripblanks">properties.ui</file>
<file>style.css</file>
<file preprocess="xml-stripblanks">../data/ui/window.ui</file>
<file preprocess="xml-stripblanks">../data/ui/orphans.ui</file>
<file preprocess="xml-stripblanks">../data/ui/filter.ui</file>
<file preprocess="xml-stripblanks">../data/ui/popular_remotes.ui</file>
<file preprocess="xml-stripblanks">../data/ui/remotes.ui</file>
<file preprocess="xml-stripblanks">../data/ui/downgrade.ui</file>
<file preprocess="xml-stripblanks">../data/ui/search_install.ui</file>
<file preprocess="xml-stripblanks">../data/ui/snapshots.ui</file>
<file preprocess="xml-stripblanks">../data/ui/properties.ui</file>
<file>../data/style.css</file>
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
<!-- <file preprocess="xml-stripblanks">../data/io.github.flattool.Warehouse.metainfo.xml.in</file> -->
</gresource>
<gresource prefix="/io/github/flattool/Warehouse/icons/scalable/actions/">
<file preprocess="xml-stripblanks">selection-mode-symbolic.svg</file>
<file preprocess="xml-stripblanks">error-symbolic.svg</file>
<file preprocess="xml-stripblanks">user-trash-symbolic.svg</file>
<file preprocess="xml-stripblanks">folder-visiting-symbolic.svg</file>
<file preprocess="xml-stripblanks">info-symbolic.svg</file>
<file preprocess="xml-stripblanks">check-plain-symbolic.svg</file>
<file preprocess="xml-stripblanks">paper-filled-symbolic.svg</file>
<file preprocess="xml-stripblanks">plus-large-symbolic.svg</file>
<file preprocess="xml-stripblanks">funnel-symbolic.svg</file>
<file preprocess="xml-stripblanks">flatpak-symbolic.svg</file>
<file preprocess="xml-stripblanks">right-large-symbolic.svg</file>
<file preprocess="xml-stripblanks">view-more-symbolic.svg</file>
<file preprocess="xml-stripblanks">clock-alt-symbolic.svg</file>
<file preprocess="xml-stripblanks">arrow2-top-right-symbolic.svg</file>
<file preprocess="xml-stripblanks">software-update-available-symbolic.svg</file>
<file preprocess="xml-stripblanks">software-update-urgent-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="selection-mode-symbolic.svg">../data/icons/selection-mode-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="error-symbolic.svg">../data/icons/error-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="user-trash-symbolic.svg">../data/icons/user-trash-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="folder-visiting-symbolic.svg">../data/icons/folder-visiting-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="info-symbolic.svg">../data/icons/info-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="check-plain-symbolic.svg">../data/icons/check-plain-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="paper-filled-symbolic.svg">../data/icons/paper-filled-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="plus-large-symbolic.svg">../data/icons/plus-large-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="funnel-symbolic.svg">../data/icons/funnel-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="flatpak-symbolic.svg">../data/icons/flatpak-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="right-large-symbolic.svg">../data/icons/right-large-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="view-more-symbolic.svg">../data/icons/view-more-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="clock-alt-symbolic.svg">../data/icons/clock-alt-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="arrow2-top-right-symbolic.svg">../data/icons/arrow2-top-right-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="software-update-available-symbolic.svg">../data/icons/software-update-available-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="software-update-urgent-symbolic.svg">../data/icons/software-update-urgent-symbolic.svg</file>
</gresource>
</gresources>

View File

@@ -32,7 +32,7 @@ from .const import Config
from .app_row_widget import AppRow
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/window.ui")
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/../data/ui/window.ui")
class WarehouseWindow(Adw.ApplicationWindow):
__gtype_name__ = "WarehouseWindow"
main_window_title = "Warehouse"