2007-09-25 Xan Lopez <xan.lopez@nokia.com>
authorXan Lopez <xan.lopez@nokia.com>
Tue, 25 Sep 2007 08:31:56 +0000 (08:31 +0000)
committerXan Lopez <xan.lopez@nokia.com>
Tue, 25 Sep 2007 08:31:56 +0000 (08:31 +0000)
* src/hildon-bread-crumb-trail.c (hildon_bread_crumb_trail_push_text)
(hildon_bread_crumb_trail_push_icon): Do not show the separator for the
toplevel item. Fixes: NB#62031

ChangeLog
src/hildon-bread-crumb-trail.c

index a280d8f..26a25fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-25  Xan Lopez  <xan.lopez@nokia.com>
+
+       * src/hildon-bread-crumb-trail.c (hildon_bread_crumb_trail_push_text)
+       (hildon_bread_crumb_trail_push_icon): Do not show the separator for the
+       toplevel item. Fixes: NB#62031
+
 2007-09-24  Xan Lopez  <xan.lopez@nokia.com>
 
        * src/hildon-bread-crumb-trail.c (hildon_bread_crumb_trail_push_icon):
index 0d07320..25c81a7 100644 (file)
@@ -656,6 +656,10 @@ hildon_bread_crumb_trail_push_text (HildonBreadCrumbTrail *bct,
   g_return_if_fail (text != NULL);
 
   widget = _hildon_bread_crumb_widget_new_with_text (text);
+  if (bct->priv->item_list == NULL)
+    {
+      g_object_set (G_OBJECT (widget), "show-separator", FALSE, NULL);
+    }
   attach_bread_crumb (bct, widget, id, destroy);
 }
 
@@ -687,6 +691,10 @@ hildon_bread_crumb_trail_push_icon (HildonBreadCrumbTrail *bct,
   g_return_if_fail (GTK_IS_WIDGET (icon));
 
   widget = _hildon_bread_crumb_widget_new_with_icon (icon, text);
+  if (bct->priv->item_list == NULL)
+    {
+      g_object_set (G_OBJECT (widget), "show-separator", FALSE, NULL);
+    }
   attach_bread_crumb (bct, widget, id, destroy);
 }