Commit e3a0c8cc authored by Adrien Plazas's avatar Adrien Plazas

leaflet: Start the child transition only when folded

This avoids starting the transition when unfolded, which doesn't make
sense as all children are visible.

Librem5/libhandy#35
parent a0e1d1b1
......@@ -525,12 +525,12 @@ set_visible_child_info (HdyLeaflet *self,
gtk_widget_queue_allocate (widget);
else
gtk_widget_queue_resize (widget);
hdy_leaflet_start_child_transition (self, transition_type, transition_duration, transition_direction);
}
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_VISIBLE_CHILD]);
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_VISIBLE_CHILD_NAME]);
hdy_leaflet_start_child_transition (self, transition_type, transition_duration, transition_direction);
}
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