]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkpathbar.c
cssimage: Return the loaded image from compute()
[~andy/gtk] / gtk / gtkpathbar.c
index 194bb4a35f1a4611014650777339edaf88f8242f..aec2b0a6b52fdd576e9e0f3f31092a0e0b0a6f41 100644 (file)
@@ -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)