[epiphany] passwords-view: Use 'has-search-results' property
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] passwords-view: Use 'has-search-results' property
- Date: Wed, 15 Jul 2020 15:12:32 +0000 (UTC)
commit 59766481ef4ed37fd1f83a2872ce1850e9f604ca
Author: Yetizone <andreii lisita gmail com>
Date: Wed Jul 15 17:36:58 2020 +0300
passwords-view: Use 'has-search-results' property
Fixes https://gitlab.gnome.org/GNOME/epiphany/-/issues/1261
src/preferences/passwords-view.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/preferences/passwords-view.c b/src/preferences/passwords-view.c
index ef10c4c86..0b01108c2 100644
--- a/src/preferences/passwords-view.c
+++ b/src/preferences/passwords-view.c
@@ -80,6 +80,7 @@ clear_listbox (GtkWidget *listbox)
static void
on_search_text_changed (EphyPasswordsView *passwords_view)
{
+ ephy_data_view_set_has_search_results (EPHY_DATA_VIEW (passwords_view), FALSE);
gtk_list_box_invalidate_filter (GTK_LIST_BOX (passwords_view->listbox));
}
@@ -383,6 +384,9 @@ password_filter (GtkListBoxRow *row,
else if (username != NULL && g_strrstr (username, search_text) != NULL)
visible = TRUE;
+ if (visible)
+ ephy_data_view_set_has_search_results (EPHY_DATA_VIEW (passwords_view), TRUE);
+
gtk_widget_set_visible (GTK_WIDGET (row), visible);
return visible;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]