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

Signed-off-by: default avatarFederico Mena Quintero <federico@gnome.org>
parent 07eb8d69
......@@ -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);
......@@ -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);
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