filterlistmodel: emit ::notify::pending after ::items-changed
authorZander Brown <zbrown@gnome.org>
Wed, 26 Jul 2023 03:57:48 +0000 (04:57 +0100)
committerZander Brown <zbrown@gnome.org>
Wed, 26 Jul 2023 04:03:28 +0000 (05:03 +0100)
gtk/gtkfilterlistmodel.c

index 840115162db90be0cb236d46956407eb67dc14e2..991ae57e3fbeb7cb13ec5f7949f0ee0834ef88f6 100644 (file)
@@ -275,9 +275,6 @@ gtk_filter_list_model_run_filter (GtkFilterListModel *self,
     gtk_bitset_remove_range_closed (self->pending, 0, pos - 1);
   else
     g_clear_pointer (&self->pending, gtk_bitset_unref);
-  g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_PENDING]);
-
-  return;
 }
 
 static void
@@ -332,6 +329,7 @@ gtk_filter_list_model_run_filter_cb (gpointer data)
     gtk_filter_list_model_stop_filtering (self);
 
   gtk_filter_list_model_emit_items_changed_for_changes (self, old);
+  g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_PENDING]);
 
   return G_SOURCE_CONTINUE;
 }
@@ -955,6 +953,7 @@ gtk_filter_list_model_set_incremental (GtkFilterListModel *self,
       gtk_filter_list_model_stop_filtering (self);
 
       gtk_filter_list_model_emit_items_changed_for_changes (self, old);
+      g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_PENDING]);
     }
 
   g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_INCREMENTAL]);