Skip to content

Commit

Permalink
import-page: Rename to BottlesImportPage
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEvilSkeleton committed Jan 10, 2025
1 parent 4cf4e40 commit a5ef294
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions bottles/frontend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self):
)
self.__create_action("quit", self.__quit, ["<primary>q", "<primary>w"])
self.__create_action("about", self.__show_about_dialog)
self.__create_action("import", self.__show_importer_view, ["<primary>i"])
self.__create_action("import", self.__show_importer_page, ["<primary>i"])
self.__create_action("preferences", self.__show_preferences, ["<primary>comma"])
self.__create_action("help", self.__help, ["F1"])
self.__create_action("new", self.__new_bottle, ["<primary>n"])
Expand Down Expand Up @@ -293,7 +293,7 @@ def __show_preferences(self, *args):
def __new_bottle(self, *args):
self.win.show_add_view()

def __show_importer_view(self, widget=False, *args):
def __show_importer_page(self, widget=False, *args):
self.win.navigation_view.push(self.win.page_importer)

def __show_about_dialog(self, *_args):
Expand Down
2 changes: 1 addition & 1 deletion bottles/frontend/ui/bottles.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<file preprocess="xml-stripblanks">details-versioning.ui</file>
<file preprocess="xml-stripblanks">details-taskmanager.ui</file>
<file preprocess="xml-stripblanks">preferences.ui</file>
<file preprocess="xml-stripblanks">importer.ui</file>
<file preprocess="xml-stripblanks">import-page.ui</file>
<file preprocess="xml-stripblanks">library.ui</file>
<file preprocess="xml-stripblanks">dialog-launch-options.ui</file>
<file preprocess="xml-stripblanks">dialog-dll-overrides.ui</file>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Gtk 4.0;
using Adw 1;

template $ImporterView: Adw.NavigationPage {
template $BottlesImportPage: Adw.NavigationPage {
title: _("Import");
tag: "import";

Expand Down
2 changes: 1 addition & 1 deletion bottles/frontend/ui/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ blueprints = custom_target('blueprints',
'env-var-entry.blp',
'exclusion-pattern-entry.blp',
'importer-entry.blp',
'importer.blp',
'import-page.blp',
'installer-entry.blp',
'library-entry.blp',
'library.blp',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# importer.py
# import_page.py
#
# Copyright 2022 brombinmirko <[email protected]>
# Copyright 2025 The Bottles Contributors
#
# 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
Expand All @@ -26,9 +26,9 @@
from bottles.frontend.widgets.importer import ImporterEntry


@Gtk.Template(resource_path="/com/usebottles/bottles/importer.ui")
class ImporterView(Adw.NavigationPage):
__gtype_name__ = "ImporterView"
@Gtk.Template(resource_path="/com/usebottles/bottles/import-page.ui")
class BottlesImportPage(Adw.NavigationPage):
__gtype_name__ = "BottlesImportPage"

# region Widgets
list_prefixes = Gtk.Template.Child()
Expand Down
2 changes: 1 addition & 1 deletion bottles/frontend/views/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bottles_sources = [
'library.py',
'details.py',
'preferences.py',
'importer.py',
'import_page.py',
'loading.py',

'bottle_details_page.py',
Expand Down
4 changes: 2 additions & 2 deletions bottles/frontend/windows/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from bottles.frontend.params import APP_ID, BASE_ID, PROFILE
from bottles.frontend.utils.gtk import GtkUtils
from bottles.frontend.views.details import DetailsView
from bottles.frontend.views.importer import ImporterView
from bottles.frontend.views.import_page import BottlesImportPage
from bottles.frontend.views.library import LibraryView
from bottles.frontend.views.overview_list_page import BottlesOverviewListPage
from bottles.frontend.views.loading import LoadingView
Expand Down Expand Up @@ -223,7 +223,7 @@ def set_manager(result: Manager, error=None):
# Pages
self.page_details = DetailsView(self)
self.page_list = BottlesOverviewListPage(self, arg_bottle=self.arg_bottle)
self.page_importer = ImporterView(self)
self.page_importer = BottlesImportPage(self)
self.page_library = LibraryView(self)

self.navigation_view.add(self.page_details)
Expand Down

0 comments on commit a5ef294

Please sign in to comment.