[libhandy] preferences-group: Exclude hidden groups from search
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] preferences-group: Exclude hidden groups from search
- Date: Wed, 29 Jul 2020 18:00:12 +0000 (UTC)
commit 06730c156726ac5cdaac26c0c310f06659261645
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Jul 29 22:14:49 2020 +0500
preferences-group: Exclude hidden groups 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 672c114e..82c6d788 100644
--- a/src/hdy-preferences-group.c
+++ b/src/hdy-preferences-group.c
@@ -435,5 +435,8 @@ hdy_preferences_group_add_preferences_to_model (HdyPreferencesGroup *self,
g_return_if_fail (HDY_IS_PREFERENCES_GROUP (self));
g_return_if_fail (G_IS_LIST_STORE (model));
+ if (!gtk_widget_get_visible (GTK_WIDGET (self)))
+ return;
+
gtk_container_foreach (GTK_CONTAINER (priv->listbox), (GtkCallback) add_preferences_to_model, model);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]