Commit ec7f15e9 authored by Adrien Plazas's avatar Adrien Plazas Committed by Adrien Plazas
Browse files

leaflet: Init the style class for the default fold

Add the 'unfolded' style class by default to match the default fold
value.

Fixes Librem5/libhandy#198.
parent 2f25fee6
Pipeline #52475 passed with stages
in 17 minutes and 20 seconds
......@@ -3686,6 +3686,7 @@ hdy_leaflet_init (HdyLeaflet *self)
{
GtkWidget *widget = GTK_WIDGET (self);
HdyLeafletPrivate *priv = hdy_leaflet_get_instance_private (self);
GtkStyleContext *context;
priv->children = NULL;
priv->children_reversed = NULL;
......@@ -3710,6 +3711,9 @@ hdy_leaflet_init (HdyLeaflet *self)
gtk_widget_set_can_focus (widget, FALSE);
gtk_widget_set_redraw_on_allocate (widget, FALSE);
context = gtk_widget_get_style_context (GTK_WIDGET (self));
gtk_style_context_add_class (context, "unfolded");
/*
* HACK: GTK3 has no other way to get events on capture phase.
* This is a reimplementation of _gtk_widget_set_captured_event_handler(),
......
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