Fix warning about uninitialized variable plus spacing and indentation cleanup

This commit is contained in:
Michael Natterer
2009-06-25 13:30:15 +02:00
parent 99b42cf006
commit f35c317b68

View File

@ -559,14 +559,10 @@ gtk_button_box_size_request (GtkWidget *widget,
} }
if (orientation == GTK_ORIENTATION_HORIZONTAL) if (orientation == GTK_ORIENTATION_HORIZONTAL)
{
requisition->height = child_height; requisition->height = child_height;
}
else else
{
requisition->width = child_width; requisition->width = child_width;
} }
}
requisition->width += GTK_CONTAINER (box)->border_width * 2; requisition->width += GTK_CONTAINER (box)->border_width * 2;
requisition->height += GTK_CONTAINER (box)->border_width * 2; requisition->height += GTK_CONTAINER (box)->border_width * 2;
@ -589,8 +585,8 @@ gtk_button_box_size_allocate (GtkWidget *widget,
gint y = 0; gint y = 0;
gint secondary_x = 0; gint secondary_x = 0;
gint secondary_y = 0; gint secondary_y = 0;
gint width; gint width = 0;
gint height; gint height = 0;
gint childspace; gint childspace;
gint childspacing = 0; gint childspacing = 0;
GtkButtonBoxStyle layout; GtkButtonBoxStyle layout;