From 152723956735bf8b13e37a1330158312a0449e2e Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 27 Jul 2026 17:41:12 +0900 Subject: [PATCH 1/4] fix: clear deprecation warnings --- dzgui/views/dialogs/boot.py | 2 +- dzgui/views/dialogs/filepicker.py | 2 +- dzgui/views/trees/tree_base.py | 2 +- dzgui/views/trees/tree_log.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dzgui/views/dialogs/boot.py b/dzgui/views/dialogs/boot.py index 8491530..8873b7e 100644 --- a/dzgui/views/dialogs/boot.py +++ b/dzgui/views/dialogs/boot.py @@ -41,7 +41,7 @@ class BootDialog(Gtk.Dialog): def __init__(self, parent: "BootWindow", xdg: "Xdg", version: str) -> None: super().__init__( title=dialog_header, - parent=parent, + transient_for=parent, modal=True, ) diff --git a/dzgui/views/dialogs/filepicker.py b/dzgui/views/dialogs/filepicker.py index 1f9e0b2..2048598 100644 --- a/dzgui/views/dialogs/filepicker.py +++ b/dzgui/views/dialogs/filepicker.py @@ -13,7 +13,7 @@ class FilePicker(Gtk.FileChooserDialog): super().__init__( title=picker.title, action=Gtk.FileChooserAction.SAVE, - parent=parent, + transient_for=parent, resizable=True, ) self.add_buttons("_Cancel", Gtk.ResponseType.CANCEL) diff --git a/dzgui/views/trees/tree_base.py b/dzgui/views/trees/tree_base.py index fbb3a1f..93db7b9 100644 --- a/dzgui/views/trees/tree_base.py +++ b/dzgui/views/trees/tree_base.py @@ -173,7 +173,7 @@ class TreeView(CursorMixin, Gtk.TreeView): # type: ignore (model, pathlist) = sels return (model, pathlist) - @deprecated("Currently unused") + #@deprecated("Currently unused") # def get_mpath(self) -> Optional[Gtk.TreePath]: # (model, pathlist) = self.get_model_and_pathlist() # if len(pathlist) < 1: diff --git a/dzgui/views/trees/tree_log.py b/dzgui/views/trees/tree_log.py index c4c71f7..7f141ef 100644 --- a/dzgui/views/trees/tree_log.py +++ b/dzgui/views/trees/tree_log.py @@ -53,7 +53,7 @@ class LogTreeView(ContextMixin, TreeView): # type: ignore model = ModelFactory().new_model_from_logfile(filepath) _filter = model.filter_new() _filter.set_visible_func(self._filter_rows) - sortable = Gtk.TreeModelSort(_filter) + sortable = Gtk.TreeModelSort.new_with_model(_filter) self.set_model(sortable) _filter.refilter() path = Gtk.TreePath.new_from_indices([0]) From 4bbe1799408f49e1a0de9f6f53baf65395b4079d Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 27 Jul 2026 17:42:45 +0900 Subject: [PATCH 2/4] chore: comment out more unused blocks --- dzgui/views/trees/tree_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dzgui/views/trees/tree_base.py b/dzgui/views/trees/tree_base.py index 93db7b9..4b5cb42 100644 --- a/dzgui/views/trees/tree_base.py +++ b/dzgui/views/trees/tree_base.py @@ -173,7 +173,7 @@ class TreeView(CursorMixin, Gtk.TreeView): # type: ignore (model, pathlist) = sels return (model, pathlist) - #@deprecated("Currently unused") + # @deprecated("Currently unused") # def get_mpath(self) -> Optional[Gtk.TreePath]: # (model, pathlist) = self.get_model_and_pathlist() # if len(pathlist) < 1: @@ -195,7 +195,7 @@ class TreeView(CursorMixin, Gtk.TreeView): # type: ignore return True return False - @deprecated("unused") + # @deprecated("unused") # def get_selected_row(self) -> Optional[Gtk.TreeModelRow]: # ind = self.get_selected_row_index() # model = self.get_model() From 0520ced2ea50533164f04e184783abd3cb1f918c Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 27 Jul 2026 18:58:41 +0900 Subject: [PATCH 3/4] chore: drop unused import --- dzgui/views/trees/tree_base.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dzgui/views/trees/tree_base.py b/dzgui/views/trees/tree_base.py index 4b5cb42..b3b1178 100644 --- a/dzgui/views/trees/tree_base.py +++ b/dzgui/views/trees/tree_base.py @@ -1,7 +1,6 @@ import logging from typing import Any, Optional, TYPE_CHECKING -from warnings import deprecated from dzgui.const.constants import APP_NAME, SEPARATOR from dzgui.util.keys import is_ctrl_mask, is_navkey From aac29c0a5c9252802e95dccc9f2e191f22e836c0 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 27 Jul 2026 20:10:08 +0900 Subject: [PATCH 4/4] chore: bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8ded0ce..5b491f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ description = "DayZ server browser and mod manager for Linux" authors = [ {name = "aclist"} ] -version = "7.0.0b18" +version = "7.0.0b20" license = "GPL-3.0-or-later" license-files = ["LICENSE"] readme = "README.md"