diff options
-rw-r--r-- | gtk/gtkfontchooserwidget.c | 3 | ||||
-rw-r--r-- | gtk/ui/gtkfontchooserwidget.ui | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c index 681466714b..ede2ce8bf4 100644 --- a/gtk/gtkfontchooserwidget.c +++ b/gtk/gtkfontchooserwidget.c @@ -774,7 +774,8 @@ rows_changed_cb (GtkFontChooserWidget *self) { const char *page; - if (g_list_model_get_n_items (G_LIST_MODEL (self->selection)) == 0) + if (g_list_model_get_n_items (G_LIST_MODEL (self->selection)) == 0 && + gtk_filter_list_model_get_pending (GTK_FILTER_LIST_MODEL (self->filter_model)) == 0) page = "empty"; else page = "list"; diff --git a/gtk/ui/gtkfontchooserwidget.ui b/gtk/ui/gtkfontchooserwidget.ui index c3933c84b2..96c259687e 100644 --- a/gtk/ui/gtkfontchooserwidget.ui +++ b/gtk/ui/gtkfontchooserwidget.ui @@ -5,6 +5,7 @@ <signal name="items-changed" handler="rows_changed_cb" object="GtkFontChooserWidget" swapped="1" /> <property name="model"> <object class="GtkFilterListModel" id="filter_model"> + <signal name="notify::pending" handler="rows_changed_cb" object="GtkFontChooserWidget" swapped="1" /> <property name="incremental">1</property> <property name="filter"> <object class="GtkEveryFilter"> |