[gtk/matthiasc/for-master] treelistrowsorter: Add a bandaid




commit 523414ca60898de602bea3f962ae0539d7e92dab
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 5 21:27:23 2020 -0400

    treelistrowsorter: Add a bandaid
    
    The GtkTreeListRowSortKeys implementation doesn't
    know how it wants to cache its keys, and just crashes.
    
    Since that is not cool, add a bandaid fix that forces
    it to recreate its keys instead. Extra work, but hey,
    no crash.
    
    Related: #3228

 gtk/gtktreelistrowsorter.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtktreelistrowsorter.c b/gtk/gtktreelistrowsorter.c
index 740a2ec17f..cf19296a93 100644
--- a/gtk/gtktreelistrowsorter.c
+++ b/gtk/gtktreelistrowsorter.c
@@ -210,6 +210,9 @@ gtk_tree_list_row_sort_keys_is_compatible (GtkSortKeys *keys,
   GtkTreeListRowSortKeys *self = (GtkTreeListRowSortKeys *) keys;
   GtkTreeListRowSortKeys *compare;
 
+  /* FIXME https://gitlab.gnome.org/GNOME/gtk/-/issues/3228 */
+  return FALSE;
+
   if (keys->klass != other->klass)
     return FALSE;
 


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