[maemo-commits] [maemo-commits] r12088 - in projects/haf/trunk/hildon-1: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Jun 4 15:22:15 EEST 2007
Author: xan
Date: 2007-06-04 15:21:35 +0300 (Mon, 04 Jun 2007)
New Revision: 12088

Modified:
   projects/haf/trunk/hildon-1/ChangeLog
   projects/haf/trunk/hildon-1/src/hildon-bread-crumb-trail.c
   projects/haf/trunk/hildon-1/src/hildon-bread-crumb-widget.c
Log:
2007-06-04  Xan Lopez  <xan.lopez at nokia.com>

	* src/hildon-bread-crumb-trail.c: set children visible before allocation.
	* src/hildon-bread-crumb-widget.c: set xalign to 0.0 for labels.


Modified: projects/haf/trunk/hildon-1/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-1/ChangeLog	2007-06-04 10:19:46 UTC (rev 12087)
+++ projects/haf/trunk/hildon-1/ChangeLog	2007-06-04 12:21:35 UTC (rev 12088)
@@ -1,3 +1,8 @@
+2007-06-04  Xan Lopez  <xan.lopez at nokia.com>
+
+	* src/hildon-bread-crumb-trail.c: set children visible before allocation.
+	* src/hildon-bread-crumb-widget.c: set xalign to 0.0 for labels.
+
 2007-06-01  Michael Dominic Kostrzewa  <michael.kostrzewa at nokia.com> 
 
 	[1.0.8-1 release]

Modified: projects/haf/trunk/hildon-1/src/hildon-bread-crumb-trail.c
===================================================================
--- projects/haf/trunk/hildon-1/src/hildon-bread-crumb-trail.c	2007-06-04 10:19:46 UTC (rev 12087)
+++ projects/haf/trunk/hildon-1/src/hildon-bread-crumb-trail.c	2007-06-04 12:21:35 UTC (rev 12088)
@@ -322,8 +322,8 @@
           if (child_allocation.width > req.width)
             {
               first_hide = p->next;
+              gtk_widget_set_child_visible (child, TRUE);
               gtk_widget_size_allocate (child, &child_allocation);
-              gtk_widget_set_child_visible (child, TRUE);
               child_allocation.x += child_allocation.width;
             }
           else
@@ -359,8 +359,8 @@
         }
 
       child_allocation.width = natural_width;
+      gtk_widget_set_child_visible (child, TRUE);
       gtk_widget_size_allocate (child, &child_allocation);
-      gtk_widget_set_child_visible (child, TRUE);
       child_allocation.x += child_allocation.width;
     }
 

Modified: projects/haf/trunk/hildon-1/src/hildon-bread-crumb-widget.c
===================================================================
--- projects/haf/trunk/hildon-1/src/hildon-bread-crumb-widget.c	2007-06-04 10:19:46 UTC (rev 12087)
+++ projects/haf/trunk/hildon-1/src/hildon-bread-crumb-widget.c	2007-06-04 12:21:35 UTC (rev 12088)
@@ -264,6 +264,7 @@
       if (priv->text)
         {
           priv->label = gtk_label_new (priv->text);
+          g_object_set (G_OBJECT (priv->label), "xalign", 0.0, NULL);
           gtk_label_set_ellipsize (GTK_LABEL (priv->label),
                                    PANGO_ELLIPSIZE_END);
 
@@ -291,6 +292,7 @@
                           TRUE, TRUE, 0);
 
       priv->label = gtk_label_new (priv->text);
+      g_object_set (G_OBJECT (priv->label), "xalign", 0.0, NULL);
       gtk_label_set_ellipsize (GTK_LABEL (priv->label),
                                PANGO_ELLIPSIZE_END);
       gtk_box_pack_start (GTK_BOX (bread_crumb->contents), priv->label, TRUE, TRUE, 0);


More information about the maemo-commits mailing list