[maemo-commits] [maemo-commits] r11444 - in projects/haf/trunk/hildon-1: . src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri May 4 14:36:50 EEST 2007
- Previous message: [maemo-commits] r11443 - projects/haf/trunk/hildon-desktop/src
- Next message: [maemo-commits] r11445 - in projects/haf/trunk/libhildonmime: . libhildonmime
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: xan Date: 2007-05-04 14:36:49 +0300 (Fri, 04 May 2007) New Revision: 11444 Modified: projects/haf/trunk/hildon-1/ChangeLog projects/haf/trunk/hildon-1/src/hildon-bread-crumb-trail.c Log: * src/hildon-bread-crumb-trail.c: (hildon_bread_crumb_trail_size_allocate): Make the back button always a square. Modified: projects/haf/trunk/hildon-1/ChangeLog =================================================================== --- projects/haf/trunk/hildon-1/ChangeLog 2007-05-04 11:30:06 UTC (rev 11443) +++ projects/haf/trunk/hildon-1/ChangeLog 2007-05-04 11:36:49 UTC (rev 11444) @@ -1,6 +1,12 @@ 2007-05-04 Xan Lopez <xan.lopez at nokia.com> * src/hildon-bread-crumb-trail.c: + (hildon_bread_crumb_trail_size_allocate): + + Make the back button always a square. + +2007-05-04 Xan Lopez <xan.lopez at nokia.com> + * src/hildon-bread-crumb-trail.h: Include hildon-bread-crumb-widget.h from the .c file as it's a private file. Modified: projects/haf/trunk/hildon-1/src/hildon-bread-crumb-trail.c =================================================================== --- projects/haf/trunk/hildon-1/src/hildon-bread-crumb-trail.c 2007-05-04 11:30:06 UTC (rev 11443) +++ projects/haf/trunk/hildon-1/src/hildon-bread-crumb-trail.c 2007-05-04 11:36:49 UTC (rev 11444) @@ -224,6 +224,7 @@ gint border_width, width; gint extra_space; GList *p, *first_show, *first_hide; + gint back_button_size; HildonBreadCrumbTrailPrivate *priv = HILDON_BREAD_CRUMB_TRAIL (widget)->priv; widget->allocation = *allocation; @@ -235,10 +236,11 @@ child_allocation.x = allocation->x + border_width; child_allocation.y = allocation->y + border_width; gtk_widget_get_child_requisition (priv->back_button, &child_requisition); - child_allocation.width = child_requisition.width; - child_allocation.height = child_requisition.height; + /* We want the back button to be a square */ + back_button_size = MAX (child_requisition.width, child_requisition.height); + child_allocation.width = child_allocation.height = back_button_size; gtk_widget_size_allocate (priv->back_button, &child_allocation); - child_allocation.x += child_allocation.width; + child_allocation.x += back_button_size; /* If there are no buttons there's nothing else to do */ if (priv->item_list == NULL) @@ -247,7 +249,7 @@ /* We find out how many buttons can we show, starting from the the last one in the logical path (the first item in the list) */ - width = child_allocation.width; + width = back_button_size; p = priv->item_list; first_show = NULL; first_hide = NULL;
- Previous message: [maemo-commits] r11443 - projects/haf/trunk/hildon-desktop/src
- Next message: [maemo-commits] r11445 - in projects/haf/trunk/libhildonmime: . libhildonmime
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]