Commit bc0b0e20 authored by Adrien Plazas's avatar Adrien Plazas
Browse files

updates-page: Notify the stack when it needs attention

parent 439d60b6
......@@ -295,6 +295,11 @@ refresh_headerbar_updates_counter (GsUpdatesPage *self)
gtk_style_context_add_class (gtk_widget_get_style_context (widget), "needs-attention");
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,
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