[gnome-taquin/arnaudb/wip/gtk4: 50/56] Try a fix.




commit 7435ea88d3878b8c8daf59cd0d866a5f275aae58
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Sep 29 17:53:17 2020 +0200

    Try a fix.

 src/overlayed-list.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/overlayed-list.vala b/src/overlayed-list.vala
index 9bf9bd4..b254ac3 100644
--- a/src/overlayed-list.vala
+++ b/src/overlayed-list.vala
@@ -147,7 +147,7 @@ private abstract class OverlayedList : Widget, AdaptativeWidget
     }
     private static inline bool _previous_match (ref ListBox main_list_box)
     {
-        uint n_items = main_list_box.get_children ().length ();  // FIXME OverlayedList.n_items is unreliable
+        uint n_items = main_list_box.observe_children ().get_n_items ();  // FIXME using observe_children() 
is a bad idea, see docs
         if (n_items == 0)
             return false;
 


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