From: Zander Brown Date: Wed, 26 Jul 2023 03:57:48 +0000 (+0100) Subject: filterlistmodel: emit ::notify::pending after ::items-changed X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~39^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=72a1bd64e6c2c80180b9042874f794e25e1570b8;p=gtk4.git filterlistmodel: emit ::notify::pending after ::items-changed --- diff --git a/gtk/gtkfilterlistmodel.c b/gtk/gtkfilterlistmodel.c index 840115162d..991ae57e3f 100644 --- a/gtk/gtkfilterlistmodel.c +++ b/gtk/gtkfilterlistmodel.c @@ -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]);