+2007-05-08 Xan Lopez <xan.lopez@nokia.com>
+
+ * src/hildon-bread-crumb-trail.c: Use set_child_visible only to
+ control the visibility of the children.
+
+ * examples/hildon-bread-crumb-trail-example.c: Plug leak.
+
2007-05-07 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
[1.0.5-1 release]
{
GtkWidget *back_button;
GList *item_list;
+ GtkWidget *arrow;
};
/* Signals */
{
first_hide = p->next;
gtk_widget_size_allocate (child, &child_allocation);
- gtk_widget_show (child);
gtk_widget_set_child_visible (child, TRUE);
child_allocation.x += child_allocation.width;
}
child_allocation.width = natural_width;
gtk_widget_size_allocate (child, &child_allocation);
- gtk_widget_show (child);
gtk_widget_set_child_visible (child, TRUE);
child_allocation.x += child_allocation.width;
}
item = HILDON_BREAD_CRUMB (p->data);
child = GTK_WIDGET (item);
- gtk_widget_hide (GTK_WIDGET (item));
gtk_widget_set_child_visible (GTK_WIDGET (item), FALSE);
}
}
list_length = g_list_length (priv->item_list);
- if (list_length == 0 || list_length == 1)
+ if (list_length <= 1)
{
gtk_widget_set_sensitive (priv->back_button, FALSE);
}
gtk_widget_set_sensitive (button, FALSE);
arrow = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_NONE);
+ bct->priv->arrow = arrow;
gtk_widget_style_get (GTK_WIDGET (bct),
"arrow-size", &arrow_size,
NULL);