diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-24 02:38:21 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-24 02:38:21 +0800 |
commit | 46700211974920a7a79c82d2ad4420934d3e7266 (patch) | |
tree | 2e6296566cae9b9bd05707835e679de933aea3a9 /widgets/e-table/e-table-sorted-variable.c | |
parent | 713e609ecb0df1373edbca1f1a05dd838416599a (diff) | |
download | gsoc2013-evolution-46700211974920a7a79c82d2ad4420934d3e7266.tar gsoc2013-evolution-46700211974920a7a79c82d2ad4420934d3e7266.tar.gz gsoc2013-evolution-46700211974920a7a79c82d2ad4420934d3e7266.tar.bz2 gsoc2013-evolution-46700211974920a7a79c82d2ad4420934d3e7266.tar.lz gsoc2013-evolution-46700211974920a7a79c82d2ad4420934d3e7266.tar.xz gsoc2013-evolution-46700211974920a7a79c82d2ad4420934d3e7266.tar.zst gsoc2013-evolution-46700211974920a7a79c82d2ad4420934d3e7266.zip |
Added right click menus to the table header items.
2000-05-23 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.c: Added right click menus to the table
header items.
* e-table-sort-info.c: Fixed a small bug.
svn path=/trunk/; revision=3184
Diffstat (limited to 'widgets/e-table/e-table-sorted-variable.c')
-rw-r--r-- | widgets/e-table/e-table-sorted-variable.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/e-table/e-table-sorted-variable.c b/widgets/e-table/e-table-sorted-variable.c index acfb33deb7..0d2ecce800 100644 --- a/widgets/e-table/e-table-sorted-variable.c +++ b/widgets/e-table/e-table-sorted-variable.c @@ -250,6 +250,7 @@ etsv_sort(ETableSortedVariable *etsv) ETableSubset *etss = E_TABLE_SUBSET(etsv); static int reentering = 0; int rows = E_TABLE_SUBSET(etsv)->n_map; + int total_rows = e_table_model_row_count(E_TABLE_SUBSET(etsv)->source); int i; int j; int cols; @@ -260,7 +261,7 @@ etsv_sort(ETableSortedVariable *etsv) cols_closure = cols; etsv_closure = etsv; printf ("starting\n"); - vals_closure = g_new(void *, rows * cols); + vals_closure = g_new(void *, total_rows * cols); ascending_closure = g_new(int, cols); compare_closure = g_new(GCompareFunc, cols); for (j = 0; j < cols; j++) { @@ -277,7 +278,7 @@ etsv_sort(ETableSortedVariable *etsv) gtk_main_iteration(); } #endif - vals_closure[i * cols + j] = e_table_model_value_at (etss->source, col->col_idx, i); + vals_closure[E_TABLE_SUBSET(etsv)->map_table[i] * cols + j] = e_table_model_value_at (etss->source, col->col_idx, E_TABLE_SUBSET(etsv)->map_table[i]); } compare_closure[j] = col->compare; ascending_closure[j] = column.ascending; |