Commit aeb5cb2c authored by Cosimo Cecchi's avatar Cosimo Cecchi

pathbar: fix a copy/paste error from last commit

We need to update the child pointer to the current iterator when going
trough the button list.
parent 0743cef5
......@@ -700,14 +700,16 @@ gtk_path_bar_size_allocate (GtkWidget *widget,
/* Now we go hide all the widgets that don't fit */
while (list)
{
child = BUTTON_DATA (list->data)->button;
needs_reorder |= gtk_widget_get_child_visible (child) == TRUE;
gtk_widget_set_child_visible (BUTTON_DATA (list->data)->button, FALSE);
gtk_widget_set_child_visible (child, FALSE);
list = list->prev;
}
for (list = first_button->next; list; list = list->next)
{
child = BUTTON_DATA (list->data)->button;
needs_reorder |= gtk_widget_get_child_visible (child) == TRUE;
gtk_widget_set_child_visible (BUTTON_DATA (list->data)->button, FALSE);
gtk_widget_set_child_visible (child, FALSE);
}
if (need_sliders || path_bar->fake_root)
......
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