"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gnucash/register/register-gnome/gnucash-style.c" between
gnucash-3.6.tar.bz2 and gnucash-3.7.tar.bz2

About: GnuCash is personal and small-business financial-accounting software.

gnucash-style.c  (gnucash-3.6.tar.bz2):gnucash-style.c  (gnucash-3.7.tar.bz2)
skipping to change at line 557 skipping to change at line 557
g_return_if_fail (col >= 0); g_return_if_fail (col >= 0);
if (width < 0) if (width < 0)
return; return;
style = gnucash_sheet_get_style_from_cursor (sheet, CURSOR_HEADER); style = gnucash_sheet_get_style_from_cursor (sheet, CURSOR_HEADER);
g_return_if_fail (col < style->ncols); g_return_if_fail (col < style->ncols);
cd = gnucash_style_get_cell_dimensions (style, 0, col); cd = gnucash_style_get_cell_dimensions (style, 0, col);
if (!cd) return;
/* adjust the overall width of this style */ /* adjust the overall width of this style */
diff = cd->pixel_width - width; diff = cd->pixel_width - width;
cd->pixel_width = width; cd->pixel_width = width;
total = MAX (sheet->window_width, sheet->width - diff); total = MAX (sheet->window_width, sheet->width - diff);
set_dimensions_pass_two (sheet, total); set_dimensions_pass_two (sheet, total);
set_dimensions_pass_three (sheet); set_dimensions_pass_three (sheet);
} }
skipping to change at line 723 skipping to change at line 724
gint *x, gint *y, gint *x, gint *y,
gint *w, gint *h) gint *w, gint *h)
{ {
CellDimensions *cd; CellDimensions *cd;
g_return_if_fail (style != NULL); g_return_if_fail (style != NULL);
g_return_if_fail (cell_row >= 0 && cell_row <= style->nrows); g_return_if_fail (cell_row >= 0 && cell_row <= style->nrows);
g_return_if_fail (cell_col >= 0 && cell_col <= style->ncols); g_return_if_fail (cell_col >= 0 && cell_col <= style->ncols);
cd = gnucash_style_get_cell_dimensions (style, cell_row, cell_col); cd = gnucash_style_get_cell_dimensions (style, cell_row, cell_col);
if (!cd) return;
*x = cd->origin_x; *x = cd->origin_x;
*y = cd->origin_y; *y = cd->origin_y;
*h = cd->pixel_height; *h = cd->pixel_height;
*w = cd->pixel_width; *w = cd->pixel_width;
} }
SheetBlockStyle * SheetBlockStyle *
gnucash_sheet_get_style (GnucashSheet *sheet, VirtualCellLocation vcell_loc) gnucash_sheet_get_style (GnucashSheet *sheet, VirtualCellLocation vcell_loc)
{ {
skipping to change at line 943 skipping to change at line 945
for (row = 0; row < style->nrows; row++) for (row = 0; row < style->nrows; row++)
for (col = 0; col < style->ncols; col++) for (col = 0; col < style->ncols; col++)
{ {
CellDimensions *cd; CellDimensions *cd;
BasicCell *cell; BasicCell *cell;
cd = gnucash_style_get_cell_dimensions (style, cd = gnucash_style_get_cell_dimensions (style,
row, col); row, col);
cell = gnc_cellblock_get_cell (header, row, col); cell = gnc_cellblock_get_cell (header, row, col);
if (!cell || !cell->cell_name) if (!cell || !cell->cell_name || !cd)
continue; continue;
cd->pixel_width = gnc_header_widths_get_width cd->pixel_width = gnc_header_widths_get_width
(widths, cell->cell_name); (widths, cell->cell_name);
} }
} }
gboolean gboolean
gnucash_style_init (void) gnucash_style_init (void)
{ {
 End of changes. 3 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)