[gnome-music/wip/jfelder/gtk4-v3: 1/174] utils: Remove wrap_list_store_sort_func
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gtk4-v3: 1/174] utils: Remove wrap_list_store_sort_func
- Date: Tue, 8 Feb 2022 11:31:52 +0000 (UTC)
commit d8b4837548492b52fe1886439833a68b82a68965
Author: Jean Felder <jfelder src gnome org>
Date: Thu Feb 3 05:35:27 2022 +0100
utils: Remove wrap_list_store_sort_func
This is not needed anymore.
gnomemusic/utils.py | 12 ------------
1 file changed, 12 deletions(-)
---
diff --git a/gnomemusic/utils.py b/gnomemusic/utils.py
index c2762cf06..9d17fd993 100644
--- a/gnomemusic/utils.py
+++ b/gnomemusic/utils.py
@@ -28,7 +28,6 @@ import unicodedata
from gettext import gettext as _
from gi.repository import Gio, GLib
-from gi._gi import pygobject_new_full
from gnomemusic.musiclogger import MusicLogger
@@ -197,14 +196,3 @@ def natural_sort_names(name_a, name_b):
for tmp in re.split(r"(\d+)", normalize_caseless(text))]
return _extract_numbers(name_b) < _extract_numbers(name_a)
-
-
-def wrap_list_store_sort_func(func):
- """PyGI wrapper for SortListModel set_sort_func.
- """
- def wrap(a, b, *user_data):
- a = pygobject_new_full(a, False)
- b = pygobject_new_full(b, False)
- return func(a, b, *user_data)
-
- return wrap
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]