[gnome-clocks/ricotz/vala] Fix vala semantic issues with type-argmunents




commit caaff32a76c9b4ef684414f601da41e31eeeafe0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Aug 1 18:34:11 2022 +0200

    Fix vala semantic issues with type-argmunents

 src/widgets.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/widgets.vala b/src/widgets.vala
index d5aae60d..808b2d6c 100644
--- a/src/widgets.vala
+++ b/src/widgets.vala
@@ -25,7 +25,7 @@ public interface ContentItem : GLib.Object {
 
 public class ContentStore : GLib.Object, GLib.ListModel {
     private ListStore store;
-    private CompareDataFunc? sort_func;
+    private CompareDataFunc<ContentItem>? sort_func;
 
 
     public ContentStore () {
@@ -47,7 +47,7 @@ public class ContentStore : GLib.Object, GLib.ListModel {
         return store.get_item (position);
     }
 
-    public void set_sorting (owned CompareDataFunc sort) {
+    public void set_sorting (owned CompareDataFunc<ContentItem> sort) {
         sort_func = (owned) sort;
 
         // TODO: we should re-sort, but for now we only


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]