diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-09-19 10:25:45 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-09-19 10:25:45 -0400 |
commit | a9bf129286bd91904d117a459362f733fd70f5a5 (patch) | |
tree | 407904bd17c1b02e86b566224b8ff20adc0c80f7 /gtk/gtkfontchooserwidget.c | |
parent | 76b7f0ca1ce22a89665cbba00a3f8d45d27de4c2 (diff) | |
download | gtk+-a9bf129286bd91904d117a459362f733fd70f5a5.tar.gz |
fontchooser: Don't show "No fonts" prematurely
Don't switch to the empty page while we are still busy
filtering. Fonts might yet appear.
Diffstat (limited to 'gtk/gtkfontchooserwidget.c')
-rw-r--r-- | gtk/gtkfontchooserwidget.c | 3 |
1 files changed, 2 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"; |