diff options
author | Miguel de Icaza <miguel@src.gnome.org> | 2000-03-30 09:35:18 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2000-03-30 09:35:18 +0800 |
commit | a02608b0784912bebfd13c888cd1f0b32ed3c5e3 (patch) | |
tree | 73de4a81330902fb49e6a5fdf82bd7b61ca6a50a /widgets/table/e-table-subset-variable.c | |
parent | 88674ff4013f5b62ecaeaf8021b8f710067b8598 (diff) | |
download | gsoc2013-evolution-a02608b0784912bebfd13c888cd1f0b32ed3c5e3.tar gsoc2013-evolution-a02608b0784912bebfd13c888cd1f0b32ed3c5e3.tar.gz gsoc2013-evolution-a02608b0784912bebfd13c888cd1f0b32ed3c5e3.tar.bz2 gsoc2013-evolution-a02608b0784912bebfd13c888cd1f0b32ed3c5e3.tar.lz gsoc2013-evolution-a02608b0784912bebfd13c888cd1f0b32ed3c5e3.tar.xz gsoc2013-evolution-a02608b0784912bebfd13c888cd1f0b32ed3c5e3.tar.zst gsoc2013-evolution-a02608b0784912bebfd13c888cd1f0b32ed3c5e3.zip |
Fix indentation
svn path=/trunk/; revision=2252
Diffstat (limited to 'widgets/table/e-table-subset-variable.c')
-rw-r--r-- | widgets/table/e-table-subset-variable.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/widgets/table/e-table-subset-variable.c b/widgets/table/e-table-subset-variable.c index 5a3e0f2ddf..35cd4f9deb 100644 --- a/widgets/table/e-table-subset-variable.c +++ b/widgets/table/e-table-subset-variable.c @@ -29,13 +29,13 @@ etssv_add (ETableSubsetVariable *etssv, ETableModel *etm = E_TABLE_MODEL(etssv); ETableSubset *etss = E_TABLE_SUBSET(etssv); - if ( etss->n_map + 1 > etssv->n_vals_allocated ) { - etss->map_table = g_realloc(etss->map_table, (etssv->n_vals_allocated + INCREMENT_AMOUNT) * sizeof(int)); + if (etss->n_map + 1 > etssv->n_vals_allocated){ + etss->map_table = g_realloc (etss->map_table, (etssv->n_vals_allocated + INCREMENT_AMOUNT) * sizeof(int)); etssv->n_vals_allocated += INCREMENT_AMOUNT; } etss->map_table[etss->n_map++] = row; - if ( !etm->frozen ) - e_table_model_changed(etm); + if (!etm->frozen) + e_table_model_changed (etm); } static gboolean @@ -46,12 +46,12 @@ etssv_remove (ETableSubsetVariable *etssv, ETableSubset *etss = E_TABLE_SUBSET(etssv); int i; - for ( i = 0; i < etss->n_map; i++ ) { + for (i = 0; i < etss->n_map; i++){ if (etss->map_table[i] == row) { - memmove(etss->map_table + i, etss->map_table + i + 1, (etss->n_map - i - 1) * sizeof(int)); + memmove (etss->map_table + i, etss->map_table + i + 1, (etss->n_map - i - 1) * sizeof(int)); etss->n_map --; - if ( !etm->frozen ) - e_table_model_changed(etm); + if (!etm->frozen) + e_table_model_changed (etm); return TRUE; } } @@ -74,7 +74,7 @@ ETableModel * e_table_subset_variable_construct (ETableSubsetVariable *etssv, ETableModel *source) { - if ( e_table_subset_construct(E_TABLE_SUBSET(etssv), source, 1) == NULL ) + if (e_table_subset_construct (E_TABLE_SUBSET(etssv), source, 1) == NULL) return NULL; E_TABLE_SUBSET(etssv)->n_map = 0; @@ -125,8 +125,8 @@ e_table_subset_variable_increment (ETableSubsetVariable *etssv, { int i; ETableSubset *etss = E_TABLE_SUBSET(etssv); - for ( i = 0; i < etss->n_map; i++ ) { - if ( etss->map_table[i] > position ) + for (i = 0; i < etss->n_map; i++){ + if (etss->map_table[i] > position) etss->map_table[i] += amount; } } @@ -136,9 +136,9 @@ e_table_subset_variable_set_allocation (ETableSubsetVariable *etssv, gint total) { ETableSubset *etss = E_TABLE_SUBSET(etssv); - if ( total <= 0 ) + if (total <= 0) total = 1; - if ( total > etss->n_map ) { - etss->map_table = g_realloc(etss->map_table, total * sizeof(int)); + if (total > etss->n_map){ + etss->map_table = g_realloc (etss->map_table, total * sizeof(int)); } } |