Commit ad55246c authored by Adrien Plazas's avatar Adrien Plazas

updates-page: Notify the stack when it needs attention

parent 2bf8e25c
......@@ -295,6 +295,11 @@ refresh_headerbar_updates_counter (GsUpdatesPage *self)
gtk_style_context_add_class (gtk_widget_get_style_context (widget), "needs-attention");
else
gtk_style_context_remove_class (gtk_widget_get_style_context (widget), "needs-attention");
widget = GTK_WIDGET (gtk_builder_get_object (self->builder, "stack_main"));
gtk_container_child_set (GTK_CONTAINER (widget), GTK_WIDGET (self),
"needs-attention", num_updates > 0,
NULL);
}
static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment