[libhandy] preferences-group: Exclude hidden rows from search
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] preferences-group: Exclude hidden rows from search
- Date: Wed, 29 Jul 2020 18:00:12 +0000 (UTC)
commit 73eb068ac60902c460c8c680c902c02e4f6dbf97
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Jul 29 22:14:25 2020 +0500
preferences-group: Exclude hidden rows from search
Signed-off-by: Alexander Mikhaylenko <alexm gnome org>
src/hdy-preferences-group.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/hdy-preferences-group.c b/src/hdy-preferences-group.c
index b7b53a87..672c114e 100644
--- a/src/hdy-preferences-group.c
+++ b/src/hdy-preferences-group.c
@@ -411,6 +411,9 @@ add_preferences_to_model (HdyPreferencesRow *row,
g_assert (HDY_IS_PREFERENCES_ROW (row));
g_assert (G_IS_LIST_STORE (model));
+ if (!gtk_widget_get_visible (GTK_WIDGET (row)))
+ return;
+
g_list_store_append (model, row);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]