diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-11-15 06:04:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-11-15 06:04:21 +0800 |
commit | 9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91 (patch) | |
tree | 2e1e96f33404781354c422a7e9beaf458ebeb655 /widgets/table/e-cell-hbox.c | |
parent | 7e8f8bb9e5167b0219b48ab3e8062080d3740b0a (diff) | |
download | gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.gz gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.zst gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.zip |
** Remove trailing whitespace from source code.
2007-11-14 Matthew Barnes <mbarnes@redhat.com>
** Remove trailing whitespace from source code.
svn path=/trunk/; revision=34537
Diffstat (limited to 'widgets/table/e-cell-hbox.c')
-rw-r--r-- | widgets/table/e-cell-hbox.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/widgets/table/e-cell-hbox.c b/widgets/table/e-cell-hbox.c index 0dbee373cb..0f49d035c9 100644 --- a/widgets/table/e-cell-hbox.c +++ b/widgets/table/e-cell-hbox.c @@ -1,5 +1,5 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* +/* * e-cell-hbox.c - Hbox cell object. * Copyright 2006 Novell, Inc. * @@ -55,13 +55,13 @@ ecv_new_view (ECell *ecell, ETableModel *table_model, void *e_table_item_view) ECellHbox *ecv = E_CELL_HBOX (ecell); ECellHboxView *hbox_view = g_new0 (ECellHboxView, 1); int i; - + hbox_view->cell_view.ecell = ecell; hbox_view->cell_view.e_table_model = table_model; hbox_view->cell_view.e_table_item_view = e_table_item_view; hbox_view->cell_view.kill_view_cb = NULL; hbox_view->cell_view.kill_view_cb_data = NULL; - + /* create our subcell view */ hbox_view->subcell_view_count = ecv->subcell_count; hbox_view->subcell_views = g_new (ECellView *, hbox_view->subcell_view_count); @@ -149,7 +149,7 @@ ecv_draw (ECellView *ecell_view, GdkDrawable *drawable, int subcell_offset = 0; int i; int allotted_width = x2-x1; - + for (i = 0; i < hbox_view->subcell_view_count; i++) { /* Now cause our subcells to draw their contents, shifted by subcell_offset pixels */ @@ -207,7 +207,7 @@ ecv_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, * ECell::height method */ static int -ecv_height (ECellView *ecell_view, int model_col, int view_col, int row) +ecv_height (ECellView *ecell_view, int model_col, int view_col, int row) { ECellHboxView *hbox_view = (ECellHboxView *)ecell_view; int height = 0, max_height = 0; @@ -232,9 +232,9 @@ ecv_max_width (ECellView *ecell_view, int model_col, int view_col) for (i = 0; i < hbox_view->subcell_view_count; i++) { int cell_width = e_cell_max_width (hbox_view->subcell_views[i], hbox_view->model_cols[i], view_col); - + if (cell_width < hbox_view->def_size_cols[i]) - cell_width = hbox_view->def_size_cols[i]; + cell_width = hbox_view->def_size_cols[i]; width += cell_width; } @@ -291,10 +291,10 @@ e_cell_hbox_init (ECellHbox *ecv) /** * e_cell_hbox_new: - * + * * Creates a new ECell renderer that can be used to render multiple * child cells. - * + * * Return value: an ECell object that can be used to render multiple * child cells. **/ @@ -314,7 +314,7 @@ e_cell_hbox_append (ECellHbox *hbox, ECell *subcell, int model_col, int size) hbox->subcells = g_renew (ECell *, hbox->subcells, hbox->subcell_count); hbox->model_cols = g_renew (int, hbox->model_cols, hbox->subcell_count); hbox->def_size_cols = g_renew (int, hbox->def_size_cols, hbox->subcell_count); - + hbox->subcells[hbox->subcell_count - 1] = subcell; hbox->model_cols[hbox->subcell_count - 1] = model_col; hbox->def_size_cols[hbox->subcell_count - 1] = size; |