[path-bar] Only reset the children's styles if the children actually changed

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
Federico Mena Quintero
2011-11-28 11:49:35 -06:00
parent 07eb8d6952
commit 6ce48345ce

View File

@@ -1755,6 +1755,8 @@ gtk_path_bar_set_file_finish (struct SetFileInfo *info,
GtkWidget *button = BUTTON_DATA (l->data)->button;
gtk_container_add (GTK_CONTAINER (info->path_bar), button);
}
child_ordering_changed (info->path_bar);
}
else
{
@@ -1776,8 +1778,6 @@ gtk_path_bar_set_file_finish (struct SetFileInfo *info,
if (info->parent_file)
g_object_unref (info->parent_file);
child_ordering_changed (info->path_bar);
g_free (info);
}