[gnome-music/wip/jfelder/gtk4-v3: 5/130] 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: 5/130] utils: Remove wrap_list_store_sort_func
- Date: Thu, 3 Feb 2022 14:59:56 +0000 (UTC)
commit 0cbcbd4ed54667f7265b19bcfb7de31862162b07
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 | 11 -----------
1 file changed, 11 deletions(-)
---
diff --git a/gnomemusic/utils.py b/gnomemusic/utils.py
index 5d3262a00..5f9555bd8 100644
--- a/gnomemusic/utils.py
+++ b/gnomemusic/utils.py
@@ -192,14 +192,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]