[gnome-builder] greeter: set initial filter when adding sections



commit 573f795dcd1ff5d85277b1c781b0c710fb2ecbac
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 21 19:09:25 2019 -0800

    greeter: set initial filter when adding sections

 src/libide/greeter/ide-greeter-workspace.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/libide/greeter/ide-greeter-workspace.c b/src/libide/greeter/ide-greeter-workspace.c
index 403c8f750..35cfe89e2 100644
--- a/src/libide/greeter/ide-greeter-workspace.c
+++ b/src/libide/greeter/ide-greeter-workspace.c
@@ -673,6 +673,9 @@ ide_greeter_workspace_add_section (IdeGreeterWorkspace *self,
   gtk_container_add_with_properties (GTK_CONTAINER (self->sections), GTK_WIDGET (section),
                                      "priority", ide_greeter_section_get_priority (section),
                                      NULL);
+
+  gtk_widget_set_visible (GTK_WIDGET (section),
+                          ide_greeter_section_filter (section, NULL));
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]