Commit 29a4dbbd authored by Christian Hergert's avatar Christian Hergert
Browse files

menu-button: stash appropriate widget for destruction

parent a253f4d4
......@@ -126,7 +126,7 @@ dzl_menu_button_items_changed (DzlMenuButton *self,
for (guint i = 0; i < removed; i++)
{
GtkWidget *child = dzl_box_get_nth_child (priv->popover_box, position);
GtkWidget *child = dzl_box_get_nth_child (priv->popover_box, position + i);
children = g_list_prepend (children, g_object_ref (child));
}
......
Supports Markdown
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