Commit 27e5f40f authored by Christian Hergert's avatar Christian Hergert
Browse files

suggestion: protect against unexpected signal delivery

We don't want to deal with this race while simply force drawing
the revealer at it's full expanded state.
parent 537feae4
......@@ -797,9 +797,15 @@ dzl_suggestion_popover_items_changed (DzlSuggestionPopover *self,
!gtk_revealer_get_child_revealed (self->revealer) &&
(removed || added))
{
g_signal_handlers_block_by_func (self->revealer,
G_CALLBACK (dzl_suggestion_popover_notify_child_revealed),
self);
gtk_revealer_set_transition_duration (self->revealer, 0);
gtk_revealer_set_reveal_child (self->revealer, FALSE);
gtk_revealer_set_reveal_child (self->revealer, TRUE);
g_signal_handlers_unblock_by_func (self->revealer,
G_CALLBACK (dzl_suggestion_popover_notify_child_revealed),
self);
}
}
......
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