[gtk+/gtk-3-2] [path-bar] Only reset the children's styles if the children actually changed



commit 0fb5e6fff38dfe753edd2d64c9a9f39eba6f53ca
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Nov 28 11:49:35 2011 -0600

    [path-bar] Only reset the children's styles if the children actually changed
    
    Signed-off-by: Federico Mena Quintero <federico gnome org>

 gtk/gtkpathbar.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index b48bc14..1a9c6f2 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1750,6 +1750,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
     {
@@ -1771,8 +1773,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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]